An AI-powered web application that summarizes text and PDF documents using Google Gemini and Streamlit.
- Paste text and generate summaries
- Upload PDF documents and extract text automatically
- Choose summary length:
- Short (3–5 bullet points)
- Medium (~150 words)
- Detailed (300–400 words)
- Download the generated summary as a
.txtfile - Uses Google Gemini API
- Python
- Streamlit
- Google Gemini API
- PyPDF2
- python-dotenv
- Clone the repository
- Install dependencies pip install -r requirements.txt
- Get a free Gemini API key
Create a free API key from Google AI Studio:
- Create a .env file GEMINI_API_KEY=your_api_key_here
- Run the Application streamlit run app.py
The app will open in your browser at:
- Choose Paste Text or Upload PDF
- Enter text or upload a PDF
- Select summary length
- Click Generate Summary
- Download the summary if needed
- Keyword extraction
- Sentiment analysis
- Translation support
- Chat with PDF functionality
This project is for educational and portfolio purposes.
AI_Text_Summarizer/
│── app.py
│── requirements.txt
│── .env
│── README.md