Kethana009/CODE-EXPLANATION
0
AI Code Explainer ๐ค
A premium, interactive Gradio application that explains source code in detail using Hugging Face's Qwen2.5-Coder model (via Hugging Face Router API).
Features
- Interactive Execution Player: Step through code execution line by line and see how program state and variables evolve.
- Smart Syntax Highlighting & Language Selector: Supports auto-detection or manual selection for Python, Java, C, C++, JavaScript, Go, Rust, and HTML/CSS.
- Detailed Explanation Tabs:
- Overview & Beginner Summary: Brief high-level summary and friendly introduction.
- Line-by-Line breakdown: Visual table mapping each code line to its detailed purpose.
- Interactive execution trace: Stepper controls to visualize state changes.
- Complexity & Output: Analysis of Big-O time/space complexity and predicted program output.
- Download and Copy Options: Clean download buttons to save explanations as markdown, plus copy buttons.
- Stunning Glassmorphism Design: High-fidelity dark mode with neon accents and modern typography.
Installation
Ensure you have Python 3.8+ installed. Then install the dependencies:
pip install -r requirements.txtRunning the Application
Start the web application:
python app.pyOpen the printed URL (typically http://127.0.0.1:7860) in your web browser. Make sure to input your Hugging Face API Token (which you can generate for free in your HF account settings).
