Spaces:
Configuration error
Configuration error
Download server/app.py from MetaStableMinds/business-sim-openenv: direct link, hf CLI and curl.
- Browser
- Download file 245 Bytes
-
https://huggingface.co/spaces/MetaStableMinds/business-sim-openenv/resolve/main/server/app.py
- Command line
-
hf download hf://spaces/MetaStableMinds/business-sim-openenv/server/app.py
-
curl -L -o app.py https://huggingface.co/spaces/MetaStableMinds/business-sim-openenv/resolve/main/server/app.py
245 Bytes
| from src.server import app | |
| def main(): | |
| import uvicorn | |
| import os | |
| port = int(os.environ.get("PORT", 7860)) | |
| host = os.environ.get("HOST", "0.0.0.0") | |
| uvicorn.run(app, host=host, port=port) | |
| if __name__ == '__main__': | |
| main() | |