Spaces:
Sleeping
Sleeping
Commit History
-
Fix endpoint registration and app structure for Hugging Face Spaces compatibility
f7a26b5 -
fix: add PYTHONPATH setup in app.py for openenv imports
- Add openenv-course-tmp to sys.path before importing main - Enables FastAPI app to start when app.py is used as entry point - Confirms app:app entry point works with uvicorn5c49cd2 -
fix: consolidate app.py as FastAPI entry point for HF Space deployment
- Replaced old Flask code with simple FastAPI import from main.py - Ensures HF Space uses working bug detection system (main.py) - Fixes deployment mismatch between localhost and HF Spaces - app.py now acts as universal entry point for all deployment targets4ad1b43 -
feat: complete frontend integration and API routes
3a826be
-
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