An AI-powered Python code review tool built with Streamlit and Google Gemini 1.5 Flash API. Paste any Python code, click Review, and instantly get feedback on bugs, syntax errors, logical flaws, and best practices.
- Identifies bugs, syntax errors, and logical flaws
- Provides corrected code snippets with explanations
- Focuses on accuracy, efficiency, and best coding practices
- Simple, clean Streamlit web interface
- Powered by Google Gemini 1.5 Flash
- Python
- Streamlit
- Google Gemini API (
google-generativeai)
1. Clone the repo
git clone https://github.com/172005-dot/AI-Code.git
cd AI-Code2. Install dependencies
pip install streamlit google-generativeai3. Add your Gemini API key
Get a free key from Google AI Studio.
Open doc.py and replace the API key on line 4:
genai.configure(api_key="YOUR_GEMINI_API_KEY_HERE")4. Run the app
streamlit run doc.py- Enter your Python code in the text area
- Click Review Code
- Gemini 1.5 Flash analyses your code using a detailed system prompt
- Returns identified issues, fixes, and improvement suggestions
AI-Code/
│
├── doc.py # Main Streamlit application
└── README.md