Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
randydev
/
dtcn
like
0
Running
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
421f3e2
dtcn
/
server.py
randydev
Create server.py
408ef7c
verified
9 days ago
raw
Copy download link
history
blame
Safe
245 Bytes
import
os
import
uvicorn
from
fastapi
import
FastAPI
app = FastAPI(docs_url=
None
, redoc_url=
"/"
)
@app.get(
"/status"
)
def
hello
():
return
{
"message"
:
"running"
}
if
__name__ ==
"__main__"
:
uvicorn.run(app, host=
"0.0.0.0"
, port=
7860
)