A Streamlit web app that summarizes PDF documents (or raw text) using the Cohere summarization API.
- 📄 Upload a PDF or paste text directly
- 🧠 Summarization via Cohere's
summarizeendpoint - 🧹 Built-in text cleaning (deduplication, special-character removal)
- 🎨 Custom-styled Streamlit UI
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
cp .env.example .env
# then edit .env and add your COHERE_API_KEYGet a free Cohere API key at https://dashboard.cohere.com/api-keys
streamlit run app.pyThen open http://localhost:8501
- Python 3.9+
- Streamlit
- Cohere
- pdfplumber
- python-dotenv
MIT