Spaces:
Runtime error
Runtime error
Commit ·
03b82c2
1
Parent(s): 8b9f3b6
final fiexes
Browse filesFiles changed (2)
- README.md+12
- server/app.py+4-1
1234567891011121374 unmodified lines8889909192939464 unmodified lines159160161162163164165---title: Python Code Review Environment Serversdk: dockerapp_port: 8000base_path: /webpinned: falsetags: - openenv---
# OpenEnv Python Code Review Environment
Production-ready hackathon submission for OpenEnv evaluation, deterministic validator runs, and Hugging Face Docker deployment.74 unmodified lines
```bashset ENABLE_GRADIO_DEMO=trueset ENABLE_WEB_INTERFACE=truepython -m uvicorn server.app:app --host 0.0.0.0 --port 8000```
64 unmodified lines `HF_TOKEN`5. Set Space variables as needed: `API_BASE_URL`, `MODEL_NAME`, `ENABLE_GRADIO_DEMO=false` `ENABLE_WEB_INTERFACE=false` is also supported for OpenEnv-managed deploys.6. Confirm the app listens on port `8000`.7. Smoke-test: `/health`26 unmodified lines272829303031323334353626 unmodified lines
def _gradio_enabled() -> bool: return str(os.getenv("ENABLE_GRADIO_DEMO", "false")).strip().lower() in {"1", "true", "yes", "on"} for env_name in ("ENABLE_GRADIO_DEMO", "ENABLE_WEB_INTERFACE"): if str(os.getenv(env_name, "")).strip().lower() in {"1", "true", "yes", "on"}: return True return False
def _max_concurrent_envs() -> int:README.md+12
server/app.py+4-1