Download server.py from kailashhh/sonali: direct link, hf CLI and curl.
- Browser
- Download file 446 Bytes
-
https://huggingface.co/spaces/kailashhh/sonali/resolve/main/server.py
- Command line
-
hf download hf://spaces/kailashhh/sonali/server.py
-
curl -L -o server.py https://huggingface.co/spaces/kailashhh/sonali/resolve/main/server.py
446 Bytes
| import os | |
| import nest_asyncio | |
| import uvicorn | |
| from fastapi import FastAPI | |
| app = FastAPI( | |
| title="ISHITA", | |
| version="1.0.2", | |
| contact={ | |
| "name": "ISHITA MUSIC BOT", | |
| "url": "https://t.me/IshitaMusicBot", | |
| }, | |
| 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) | |