A Streamlit-powered application using Google Gemini AI for:
- π Document upload (PDF/TXT)
- π§ Auto-summarization (β€150 words)
- π¬ Free-form Q&A
- π― Challenge Me Mode (Objective & Subjective quiz generation)
https://genai-assistant-by-anmol.streamlit.app
- PDF/TXT Upload: Upload English documents up to 15 MB.
- Auto-Summary: Generates a concise β€150-word summary using Gemini.
- Ask Anything: Ask free-form questions from the document content.
- Challenge Me Mode:
- Objective: Auto-generated multiple-choice questions with scoring
- Subjective: Auto-generated descriptive questions with answer inputs
genai-assistant/
βββ app.py
βββ .env
βββ requirements.txt
βββ backend/
β βββ file_parser.py
β βββ summarizer.py
β βββ qa_engine.py
β βββ challenge.py
- Clone this repo
git clone https://github.com/anmolecule94/genai-assistant
cd genai-assistant- Create a virtual environment
python -m venv venv
# Windows
venv\Scripts\activate
# macOS/Linux
source venv/bin/activate- Install dependencies
pip install -r requirements.txt- Set your Gemini API key
- Create a
.envfile in the root with:
GOOGLE_API_KEY=your-gemini-api-key-here
Get your API key here: https://makersuite.google.com/app/apikey
- Run the app
streamlit run app.py- Python 3.9 or 3.10
- API key from Google Gemini (via MakerSuite)