Madhu Chitikela
docs: Add live HuggingFace Space demo link to README
fa84ace
|
Raw
History Blame Contribute Delete
2.06 kB
---
title: AI Code Debugger Agent
emoji: πŸ€–
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: "4.44.0"
python_version: "3.10"
app_file: app.py
pinned: false
---
# πŸ€– AI Code Debugger Agent
> Autonomous AI agent that fixes broken Python code β€” no human needed.
![Python](https://img.shields.io/badge/Python-3.10+-blue)
![LangChain](https://img.shields.io/badge/LangChain-0.2+-green)
![Groq](https://img.shields.io/badge/Groq-LLaMA3-orange)
![Gradio](https://img.shields.io/badge/UI-Gradio-red)
[![HuggingFace Space](https://img.shields.io/badge/πŸ€—%20HuggingFace-Live%20Demo-yellow)](https://huggingface.co/spaces/madhuchitikela/ai-code-debugger-agent)
---
## πŸš€ Live Demo
πŸ‘‰ **[https://huggingface.co/spaces/madhuchitikela/ai-code-debugger-agent](https://huggingface.co/spaces/madhuchitikela/ai-code-debugger-agent)**
---
## 🎯 What It Does
Paste broken code + error message β†’ AI analyzes, fixes, and explains β€” automatically.
## βš™οΈ Tech Stack
| Layer | Technology |
|---|---|
| LLM | Groq LLaMA 3.3 + Gemini Fallback |
| Framework | LangChain |
| UI | Gradio |
| Database | SQLite |
| Deployment | HuggingFace Spaces |
## πŸš€ How to Run Locally
```bash
git clone https://github.com/MadhuChitikela/ai-code-debugger-agent
cd ai-code-debugger-agent
pip install -r requirements.txt
```
Create `.env` file:
```
GROQ_API_KEY=your_key_here
GEMINI_API_KEY=your_key_here
```
Run:
```bash
python main.py
```
## πŸ’‘ Example
Input:
```python
def greet():
print(massage)
greet()
```
Error: `NameError: name 'massage' is not defined`
Output: Fixed code + explanation βœ…
## πŸ—οΈ Architecture
```
User Input (broken code + error)
↓
Multi-Model LLM
(Groq β†’ Gemini fallback)
↓
Fix Generated
↓
SQLite Logged
↓
Result Displayed
```
## πŸ“Š Features
- βœ… Auto fixes Python + JavaScript errors
- βœ… Multi-model fallback (7 models across 2 providers)
- βœ… Session history + analytics dashboard
- βœ… Professional dark UI
- βœ… All sessions logged to SQLite