Skip to content

NewProDeveloper/Cloud-Computing

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

Deploying to Streamlit Cloud

To deploy this application to Streamlit Cloud, follow these steps:

  1. Push your code to a GitHub repository:
git add .
git commit -m "Prepare for Streamlit Cloud deployment"
git push
  1. Sign in to Streamlit Cloud.

  2. Click "New app" and select your GitHub repository.

  3. Set the main file path to pipeline.py.

  4. 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"
    • Set Python version to 3.10 or higher.
  5. 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.

About

Just Text-Summarizer deployed on Streamlit cloud

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published