Spaces:
Runtime error
Runtime error
Download Backend/fastapi/__init__.py from PavanKatari/stremio-telegram-addon: direct link, hf CLI and curl.
- Browser
- Download file 366 Bytes
-
https://huggingface.co/spaces/PavanKatari/stremio-telegram-addon/resolve/main/Backend/fastapi/__init__.py
- Command line
-
hf download hf://spaces/PavanKatari/stremio-telegram-addon/Backend/fastapi/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/PavanKatari/stremio-telegram-addon/resolve/main/Backend/fastapi/__init__.py
366 Bytes
| import uvicorn | |
| from Backend.config import Telegram | |
| from Backend.fastapi.main import app | |
| #----- Uvicorn server bound to the FastAPI app | |
| Port = Telegram.PORT | |
| config = uvicorn.Config( | |
| app=app, | |
| host="0.0.0.0", | |
| port=Port, | |
| loop="uvloop", | |
| http="httptools", | |
| timeout_keep_alive=60, | |
| timeout_graceful_shutdown=5, | |
| ) | |
| server = uvicorn.Server(config) | |