code-reviewer / README.md
Erpg12's picture
feat: upload train sft file
47f1e3a
|
raw
history blame
413 Bytes

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:

pip install -r requirements.txt
python train_sft.py