A simple and fast PDF Question Answering app powered by Google Gemini 2.0 Flash, built with Python + Streamlit.
This app allows you to upload a PDF, extract the content, and ask any question related to the document.
- β Upload PDF and extract text
- β Ask questions based on document context (PDF Q&A)
- β Powered by Gemini 2.0 Flash
- β Clean and simple UI with Streamlit
- β Fast response and lightweight
- β Customizable for future features
- β Ready to deploy on HuggingFace Spaces
| Component | Technology |
|---|---|
| AI Model | Gemini 2.0 Flash |
| Backend | Python |
| UI | Streamlit |
| PDF Parser | PyPDF2 |
pdf-qa-gemini/ β ββ app/ β ββ main.py β ββ requirements.txt ββ README.md
python -m venv venv
source venv/Scripts/activate # Windows
2. Install dependencies
pip install -r requirements.txt
3. Add your Gemini API key
Create a .env file:
GEMINI_API_KEY=YOUR_API_KEY_HERE
4. Run the app
streamlit run app/main.py
π Deploy to HuggingFace
Upload project to HF Space
Select Python + Streamlit
Make sure requirements.txt exists
HF will auto-run app/main.py
π Customization & Future Development (Roadmap)
Feature Status
PDF Q&A β
Done
Support Multiple PDFs β³ Next
Add Memory / Chat History β³ Next
Support for images inside PDF β³ Next
Model switch (Gemini / OpenAI / Local LLM) β³ Next
Export Q&A to PDF β³ Next
Multi-language support β³ Next
This project is designed to be fully customizable, so additional features can be added easily based on client needs.
π¨βπ» Author
Created by Rizki Firmansyah
GitHub: https://github.com/abirizki
π License
MIT License