Spaces:
Sleeping
Sleeping
Commit History
-
chore: drop Vercel serverless config (HF Spaces is canonical)
- Remove vercel.json and api/index.py so Git pushes do not trigger Vercel builds - Always use repo-local runs/ for checkpoints (remove VERCEL env branch in config) Made-with: Cursor5d1f2a8
-
fix: address 25 code quality issues from audit
- .gitignore: add output files (agent_output, grade_output, output.txt), .venv, editor dirs (.cursor, .claude, .islstudio), runs/ folder - config.py: centralise all constants (model names, reward values, rate limits, file paths, token limits) - agent.py: startup API-key validation with clear exit message; log exceptions from both providers (no more silent swallowing); system/user message separation for cleaner role context; 3 few-shot examples for reliable JSON compliance; one automatic JSON-retry on malformed response - grader.py: +5 reward for correctly approving clean code; +5 partial credit when right decision but wrong category; all reward constants wired from config.py; type annotations - environment.py: shuffled-queue deduplication (exhausts all episodes before cycling); config-driven paths; type annotations - training_loop.py: checkpoint saved after every episode (resumable); all outputs written to runs/ (timestamped); config-driven paths - app.py: flask-lim…d1f939e -
Initial commit: CodeBug AI Training Bug Bank
b4deece