Spaces:
Paused
Paused
Download src/server.py from SemxDilado/demoss: direct link, hf CLI and curl.
- Browser
- Download file 245 Bytes
-
https://huggingface.co/spaces/SemxDilado/demoss/resolve/main/src/server.py
- Command line
-
hf download hf://spaces/SemxDilado/demoss/src/server.py
-
curl -L -o server.py https://huggingface.co/spaces/SemxDilado/demoss/resolve/main/src/server.py
245 Bytes
| import os | |
| import uvicorn | |
| from fastapi import FastAPI | |
| app = FastAPI(docs_url=None, redoc_url="/") | |
| def hello(): | |
| return {"message": "running"} | |
| if __name__ == "__main__": | |
| uvicorn.run(app, host="0.0.0.0", port=7860) |