A Streamlit-based chatbot powered by Google Gemini, specialized in Data Structures and Algorithms (DSA).
Ask questions, get explanations, and receive Python code examples for DSA topics.
- Conversational interface with chat bubbles (user on right, Gemini on left)
- Scrollable chat history
- Enter key to send messages
- DSA-focused prompt for better answers
-
Clone the repository
git clone <your-repo-url> cd DSA-Agent
-
Install dependencies
pip install -r requirements.txt
-
Set up your API key
-
Open the
.env
file. -
Replace the value of
GEMINI_API_KEY
with your own Google Gemini API key:GEMINI_API_KEY=your_google_gemini_api_key_here
-
-
Run the application
streamlit run app.py
-
Interact with the chatbot in your browser!
Below are some example screenshots of the chatbot in action:
- The
os
module is part of Python's standard library and does not need to be installed. - Make sure your API key has access to the Gemini API.
- For best results, use Python 3.8 or newer.
- Entire project is generated by Github-copilot