Skip to content

This project shows how to summarise many articles in parallel using Upstash's different features and also includes a blog. I also allows you to summarize your own articles using Meta's Llama.

Notifications You must be signed in to change notification settings

Abdusshh/article_summarizer

Repository files navigation

Article Summarizer

This project is an article summarizer that allows you to summarize articles using Meta's Llama.

Installation

  1. Clone the repository:

    git clone <GITHUB LINK>
  2. Navigate to the project directory:

    cd article_summarizer
  3. Create a virtual environment:

    python -m venv venv
  4. Activate the virtual environment:

    • For Windows:

      venv\Scripts\activate
    • For macOS/Linux:

      source bin/activate
  5. Install the required dependencies:

    pip install -r requirements.txt
  6. Set the required environment variables:

    Replace QSTASH_TOKEN, DEPLOYMENT_URL, UPSTASH_REDIS_REST_URL, and UPSTASH_REDIS_REST_TOKEN with your own values.

    You can find the QSTASH_TOKEN, UPSTASH_REDIS_REST_URL, and UPSTASH_REDIS_REST_TOKEN in your Upstash account.

    You can leave the DEPLOYMENT_URL blank and set it later when you deploy the application.

Usage

  1. Run the application locally:

    python manage.py runserver
  2. Open your web browser and navigate to http://localhost:8000/summarizer/summarize.

  3. Fill in the form with mail address, mail subject, and article text that you want to summarize.

  4. Click the "Summarize" button to get the summary mailed to you.

About

This project shows how to summarise many articles in parallel using Upstash's different features and also includes a blog. I also allows you to summarize your own articles using Meta's Llama.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published