Spaces:
Sleeping
Sleeping
Download server/app.py from Ajjack404/dev-env-debugger: direct link, hf CLI and curl.
- Browser
- Download file 465 Bytes
-
https://huggingface.co/spaces/Ajjack404/dev-env-debugger/resolve/main/server/app.py
- Command line
-
hf download hf://spaces/Ajjack404/dev-env-debugger/server/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Ajjack404/dev-env-debugger/resolve/main/server/app.py
465 Bytes
| """ | |
| OpenEnv server entry point — required for uv run server / openenv validate. | |
| Delegates to the root api.py FastAPI application. | |
| """ | |
| import os | |
| import sys | |
| # Allow imports from the project root (api.py, environment.py, etc.) | |
| sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) | |
| import uvicorn | |
| from api import app # noqa: E402 | |
| def main() -> None: | |
| uvicorn.run(app, host="0.0.0.0", port=7860, reload=False) | |
| if __name__ == "__main__": | |
| main() | |