Spaces:
Running
Running
Download server/app.py from md896/sql-debug-env: direct link, hf CLI and curl.
- Browser
- Download file 385 Bytes
-
https://huggingface.co/spaces/md896/sql-debug-env/resolve/1bc1daaf623985f39d9976fd2b2ae975cdb95246/server/app.py
- Command line
-
hf download hf://spaces/md896/sql-debug-env@1bc1daaf623985f39d9976fd2b2ae975cdb95246/server/app.py
-
curl -L -o app.py https://huggingface.co/spaces/md896/sql-debug-env/resolve/1bc1daaf623985f39d9976fd2b2ae975cdb95246/server/app.py
385 Bytes
| import os | |
| import uvicorn | |
| from .main import app | |
| def main(): | |
| """ | |
| OpenEnv entry point. | |
| This module is required for `openenv validate` multi-mode deployment checks. | |
| """ | |
| host = os.environ.get("HOST", "0.0.0.0") | |
| port = int(os.environ.get("PORT", "7860")) | |
| uvicorn.run("server.app:app", host=host, port=port, workers=1) | |
| if __name__ == "__main__": | |
| main() | |