Spaces:
Sleeping
Sleeping
Commit History
-
fix: rewrite inference.py to use self-contained WS client with proper SSL
Akshaya KumarPhase 2 deep validation failed because inference.py crashed with an unhandled exception. Root causes: 1. The OpenEnv EnvClient's WebSocket connection failed against HF Spaces due to SSL certificate verification issues (no certifi) 2. The sql_debug_env package import would fail if not installed in the validator's environment Fix: Replace the EnvClient dependency with a self-contained SimpleWSEnv client that uses raw websockets + certifi for proper SSL. No more dependency on the sql_debug_env package from inference.py. Also: - Add root requirements.txt for inference.py dependencies - Add websockets and certifi to pyproject.toml inference extras - Always exit 0 (never sys.exit(1) on partial scores) - Wrap everything in try/except for robustness - On LLM failure, still submit broken query to env for real rewards Tested: inference.py runs cleanly against live HF Space with exit code 07a539e6
-
Add real project files
Akshaya Kumar50bf486