--- title: Sumit emoji: 👀 colorFrom: gray colorTo: gray sdk: gradio sdk_version: 6.11.0 app_file: app.py pinned: false short_description: a ai backend for meta --- # 🧠 CodeRescue CodeRescue is an AI-powered backend that analyzes, detects, and fixes broken code in real-time while maintaining performance and reliability under strict constraints. --- ## 🚀 Live Demo 👉 https://sumit989bishnoi-crypto.github.io/ai-frontend/ --- ## 🛠️ How to Use 1. Open the live demo 2. Paste your broken code 3. Get instant fixes and short explanations 4. Copy and use the corrected code --- ## ⚙️ Tech Stack * HTML, JavaScript (Frontend) * Python (Flask Backend) * Hugging Face (AI Inference API) --- ## ✨ Features * ⚡ Fast response time (~2–4 seconds) * 🧠 AI-powered debugging and fixing * 🛡️ Stable JSON output handling * 🔒 Rate limiting for reliability * 📦 Token-optimized responses * ❌ No login required --- ## 💡 Why CodeRescue? Unlike basic AI tools, CodeRescue is designed with: * performance optimization * error handling * consistent output under limits This makes it reliable for real-world usage and hackathon evaluation environments. --- ## Environment State: - code: broken code Action: - fixed_code: corrected code Reward: - 1.0 → correct fix - 0.5 → partial fix - 0.0 → wrong ## 🖼️ Preview ![image](https://cdn-uploads.huggingface.co/production/uploads/69d545a9bd6a956eda7a877b/TuxVucIVCsXnVRNI62A9X.png) --- ## 📌 Note This project was built for a hackathon and focuses on creating a fast, stable, and practical AI debugging system rather than just a powerful model.