This project is an article summarizer that allows you to summarize articles using Meta's Llama.
-
Clone the repository:
git clone <GITHUB LINK>
-
Navigate to the project directory:
cd article_summarizer
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
-
For Windows:
venv\Scripts\activate
-
For macOS/Linux:
source bin/activate
-
-
Install the required dependencies:
pip install -r requirements.txt
-
Set the required environment variables:
Replace
QSTASH_TOKEN
,DEPLOYMENT_URL
,UPSTASH_REDIS_REST_URL
, andUPSTASH_REDIS_REST_TOKEN
with your own values.You can find the
QSTASH_TOKEN
,UPSTASH_REDIS_REST_URL
, andUPSTASH_REDIS_REST_TOKEN
in your Upstash account.You can leave the
DEPLOYMENT_URL
blank and set it later when you deploy the application.
-
Run the application locally:
python manage.py runserver
-
Open your web browser and navigate to
http://localhost:8000/summarizer/summarize
. -
Fill in the form with mail address, mail subject, and article text that you want to summarize.
-
Click the "Summarize" button to get the summary mailed to you.