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
12374 unmodified lines78798081828364 unmodified lines148149150151152153# OpenEnv Python Code Review EnvironmentProduction-ready hackathon submission for OpenEnv evaluation, deterministic validator runs, and Hugging Face Docker deployment.74 unmodified lines```bashset ENABLE_GRADIO_DEMO=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`6. Confirm the app listens on port `8000`.7. Smoke-test:`/health`1234567891011121374 unmodified lines8889909192939464 unmodified lines159160161162163164165---title: Python Code Review Environment Serversdk: dockerapp_port: 8000base_path: /webpinned: falsetags:- openenv---# OpenEnv Python Code Review EnvironmentProduction-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 lines2728293031323326 unmodified linesdef _gradio_enabled() -> bool:return str(os.getenv("ENABLE_GRADIO_DEMO", "false")).strip().lower() in {"1", "true", "yes", "on"}def _max_concurrent_envs() -> int:26 unmodified lines2728293031323334353626 unmodified linesdef _gradio_enabled() -> bool:for env_name in ("ENABLE_GRADIO_DEMO", "ENABLE_WEB_INTERFACE"):if str(os.getenv(env_name, "")).strip().lower() in {"1", "true", "yes", "on"}:return Truereturn Falsedef _max_concurrent_envs() -> int:
README.md+12
server/app.py+4-1