Spaces:
Sleeping
Sleeping
Commit History
-
Fix inference.py to always output valid scores for HF validation
d1d43df -
Use gpt-4o for vision support
b395a8b -
fix(hackathon): root inference + normalized grader + OpenAI-only agent
- grader.py: map integer rubric scores to (0,1) exclusive via config-derived bounds - inference.py: OpenAI client (HF_TOKEN, API_BASE_URL, MODEL_NAME); grader.grade(); 5 tasks; [START]/[STEP] task_id score/[END] only on stdout - agent.py: remove Anthropic; use openai.OpenAI with HF_TOKEN or OPENAI_API_KEY - main.py: enable LLM when HF_TOKEN or OPENAI_API_KEY is set Made-with: Cursor8e2e914
-
fix: resolve create_fastapi_app TypeError, restore _SYSTEM_PROMPT, fix /api/train body parsing
af2db79 -
Fix 404/500 errors: Clean up main.py, agent.py, training_loop.py for endpoint registration
e999a76 -
Enable RL training endpoint for Hugging Face Spaces (FastAPI)
56f6a4d
-
fix: Vercel structure and agent startup check bypass
6ed38e9 -
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