Spaces:
Runtime error
Runtime error
| 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. | |
|  | |
|  | |
|  | |
|  | |
| [](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 | |