--- title: Legacy Code Challenge emoji: ๐Ÿ› colorFrom: red colorTo: pink sdk: gradio python_version: 3.11 app_file: app.py pinned: false hf_oauth: true --- # ๐Ÿ› Legacy Code Challenge AI-powered educational tool for debugging legacy code. Students receive buggy code from real GitHub repositories and must fix it with AI assistance. ## Features - ๐Ÿ” Automated bug injection into real codebases - ๐Ÿค– AI-powered hint system (GPT-4o) - ๐Ÿงช Automated testing and scoring - ๐Ÿ“Š Optional Google Sheets summaries - ๐Ÿ’พ Complete submission storage in Supabase ## How to Use 1. Enter your OpenAI API key 2. Choose a GitHub repository (or use default: mahmoud/boltons) 3. Select difficulty level 4. Debug the injected bugs! ## Submission Storage Create a free Supabase project and configure `SUPABASE_URL` and `SUPABASE_SECRET_KEY` in Hugging Face Spaces Settings. Follow [SUPABASE_SETUP.md](SUPABASE_SETUP.md) for the SQL schema and setup steps. Google Sheets summaries remain optional. New submissions are no longer uploaded to Git.