Spaces:
Sleeping
Sleeping
File size: 413 Bytes
47f1e3a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
# JavaScript Code‑Reviewer SFT Space
This Space hosts a small, CPU‑only SFT‑tuned CodeGen model that reads a git diff + guidelines
and returns a JSON array of `{ line: int, comment: str }`.
- **API endpoint**: `/predict`
- **Inputs**: `diff` (string), `guidelines` (string)
- **Output**: JSON list of review comments.
To retrain locally, run:
```bash
pip install -r requirements.txt
python train_sft.py |