An interactive web app to summarize PDF documents using OpenAI’s GPT-3.5.
Built with FastAPI (backend) and Streamlit (frontend).
- 📑 Upload PDFs directly in the browser
- ⚡ Generates concise summaries using GPT-3.5 via LangChain
- 🖥️ FastAPI backend to handle summarization requests
- 🎨 Streamlit frontend with a simple UI
- 🔐 Secure API key handling via environment variables
- LangChain – Python library
- OpenAI GPT-3.5 – LLM
- FastAPI – backend API server
- Streamlit – frontend UI
- Clone the repository - git clone https://github.com/themagedigest/pdf-summariser.git
- cd pdf-summariser
- Create & activate virtual environment -
python -m venv venv source venv/bin/activate # macOS/Linux venv\Scripts\activate # Windows - Install dependencies -
pip install -r requirements.txt - Set up environment variables Create a .env file in the project root and add your keys: OPENAI_API_KEY=your_api_key_here
- Start the FASTAPI server -
uvicorn api:app --reload - Start the Sreamlit application -
streamlit run app.py
- Homepage
- Output