remainsalways commited on
Commit
ddac0ae
·
verified ·
1 Parent(s): 1886992

Create server.py

Browse files
Files changed (1) hide show
  1. server.py +23 -0
server.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import nest_asyncio
3
+ import uvicorn
4
+ from fastapi import FastAPI
5
+
6
+ app = FastAPI(
7
+ title="UltXtraHF",
8
+ version="1.0.2",
9
+ contact={
10
+ "name": "🌀ʊʄ⊕ք🌀",
11
+ "url": "https://github.com/ufoptg/UltroidBackup/",
12
+ },
13
+ docs_url=None,
14
+ redoc_url="/"
15
+ )
16
+
17
+ @app.get("/status")
18
+ def status():
19
+ return {"message": "running"}
20
+
21
+ if __name__ == "__main__":
22
+ nest_asyncio.apply()
23
+ uvicorn.run(app, host="0.0.0.0", port=7860)