Spaces:
Runtime error
Runtime error
File size: 781 Bytes
d2cceef 29964c2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | ---
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
```
|