Skip to content

Natural-Language-Computing/Text-Summarizer-Pipeline

Repository files navigation

Text Summarizer Pipeline

This is Project made with the help of Groq and TextGrad.

Running project locally

Method 1 - Using Nix (For UNIX based systems)

Make sure you have the Nix package manager and Git installed.

  1. Clone the repository
git clone https://github.com/Natural-Language-Computing/Text-Summarizer-Pipeline.git
cd Text-Summarizer-Pipeline
  1. Create .env file and put your Groq API key in it
GROQ_API_KEY="your API key"
  1. Enable nix shell
nix develop --extra-experimental-features "nix-command flakes" --no-pure-eval

# This command will install Python, create a virtual environment, and install dependencies required for the project
# Refer to `flake.nix` for more details.
  1. Run the project
streamlit run pipeline.py
  1. Open the browser and go to http://localhost:8501

Method 2 - Traditional Method

Make sure you have the following installed:

  • Git
  • Python 3.11 or higher

To run the project locally, follow these steps:

  1. Clone the repository
git clone https://github.com/Natural-Language-Computing/Text-Summarizer-Pipeline.git
cd Text-Summarizer-Pipeline
  1. Create .env file and put your Groq API key in it
GROQ_API_KEY="your API key"
  1. Create a virtual environment
python3 -m venv venv
  1. Activate the virtual environment
# On Windows
venv\Scripts\Activate.ps1

# On Linux or macOS
source venv/bin/activate
  1. Install the dependencies
python3 -m pip install -r requirements.txt
  1. Run the project
streamlit run pipeline.py
  1. Open the browser and go to http://localhost:8501

About

A Text Summarizer pipeline with Prompt Tuning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •