This is Project made with the help of Groq and TextGrad.
Make sure you have the Nix package manager and Git installed.
- Clone the repository
git clone https://github.com/Natural-Language-Computing/Text-Summarizer-Pipeline.git
cd Text-Summarizer-Pipeline
- Create
.env
file and put your Groq API key in it
GROQ_API_KEY="your API key"
- 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.
- Run the project
streamlit run pipeline.py
- Open the browser and go to
http://localhost:8501
Make sure you have the following installed:
- Git
- Python 3.11 or higher
To run the project locally, follow these steps:
- Clone the repository
git clone https://github.com/Natural-Language-Computing/Text-Summarizer-Pipeline.git
cd Text-Summarizer-Pipeline
- Create
.env
file and put your Groq API key in it
GROQ_API_KEY="your API key"
- Create a virtual environment
python3 -m venv venv
- Activate the virtual environment
# On Windows
venv\Scripts\Activate.ps1
# On Linux or macOS
source venv/bin/activate
- Install the dependencies
python3 -m pip install -r requirements.txt
- Run the project
streamlit run pipeline.py
- Open the browser and go to
http://localhost:8501
To deploy this application to Streamlit Cloud, follow these steps:
- Push your code to a GitHub repository:
git add .
git commit -m "Prepare for Streamlit Cloud deployment"
git push
-
Sign in to Streamlit Cloud.
-
Click "New app" and select your GitHub repository.
-
Set the main file path to
pipeline.py
. -
In the "Advanced Settings" section:
- Add your Groq API key as a secret:
- Under "Secrets", add the following:
[api_keys] GROQ_API_KEY = "your-groq-api-key-here"
- Under "Secrets", add the following:
- Set Python version to 3.10 or higher.
- Add your Groq API key as a secret:
-
Click "Deploy" to launch your application.
Your application will be available at a URL provided by Streamlit Cloud (typically https://[your-app-name].streamlit.app
).
Note: Make sure .streamlit/secrets.toml
is in your .gitignore
file so you don't accidentally commit your API key.