Spaces:
Build error
Build error
Download server.py from SoulofSukuna/BanBot: direct link, hf CLI and curl.
- Browser
- Download file 612 Bytes
-
https://huggingface.co/spaces/SoulofSukuna/BanBot/resolve/main/server.py
- Command line
-
hf download hf://spaces/SoulofSukuna/BanBot/server.py
-
curl -L -o server.py https://huggingface.co/spaces/SoulofSukuna/BanBot/resolve/main/server.py
612 Bytes
| import uvicorn | |
| import os | |
| import requests | |
| import json | |
| import base64 | |
| import re | |
| import logging | |
| from typing import Union | |
| from base64 import b64decode | |
| from fastapi import FastAPI | |
| from fastapi.staticfiles import StaticFiles | |
| from fastapi.responses import FileResponse | |
| logging.basicConfig(level=logging.ERROR) | |
| app = FastAPI( | |
| title="BanOBot", | |
| version="1.0.2", | |
| contact={ | |
| "name": "🌀ʊʄ⊕ք🌀", | |
| "url": "https://t.me/Vouch_MeBackup", | |
| }, | |
| docs_url=None, redoc_url="/" | |
| ) | |
| def BanBot(): | |
| return {"message": "running"} | |
| if __name__ == "__main__": | |
| uvicorn.run(app, host="0.0.0.0", port=7860) |