src / server.py
remainsalways's picture
Create server.py
ddac0ae verified
raw
history blame contribute delete
458 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="/"
)
@app.get("/status")
def status():
return {"message": "running"}
if __name__ == "__main__":
nest_asyncio.apply()
uvicorn.run(app, host="0.0.0.0", port=7860)