Spaces:
Sleeping
Sleeping
Download server.py from xkailashhh/postingbot: direct link, hf CLI and curl.
- Browser
- Download file 463 Bytes
-
https://huggingface.co/spaces/xkailashhh/postingbot/resolve/main/server.py
- Command line
-
hf download hf://spaces/xkailashhh/postingbot/server.py
-
curl -L -o server.py https://huggingface.co/spaces/xkailashhh/postingbot/resolve/main/server.py
463 Bytes
| import os | |
| import nest_asyncio | |
| import uvicorn | |
| from fastapi import FastAPI | |
| app = FastAPI( | |
| title="UltXtraHF", | |
| version="1.0.2", | |
| contact={ | |
| "name": "πΚΚβΦπ", | |
| "url": "https://github.com/ufoptg/UltroidBackup/", | |
| }, | |
| docs_url=None, | |
| redoc_url="/" | |
| ) | |
| def status(): | |
| return {"message": "running"} | |
| if __name__ == "__main__": | |
| nest_asyncio.apply() | |
| uvicorn.run(app, host="0.0.0.0", port=7860) | |