--- title: CodeTutor emoji: 💻 colorFrom: pink colorTo: purple sdk: gradio sdk_version: 6.31.0 python_version: '3.12' app_file: app.py pinned: false license: mit --- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference ## CodeTutor A Gradio chat app that helps you learn programming: explain concepts, debug, review or write code, or get Socratic hints. ### Setup 1. In the Space **Settings → Variables and secrets**, add a secret `HF_TOKEN` (a Hugging Face access token with "Make calls to Inference Providers" permission). 2. Optional: add a variable `MODEL_ID` to change the default model (default: `Qwen/Qwen2.5-Coder-32B-Instruct`). ### Run locally ```bash pip install -r requirements.txt HF_TOKEN=hf_xxx python app.py ```