Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
randydev
/
stringold
like
0
Running
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
6c9014d
stringold
/
server.py
randydev
Create server.py
6e4e77a
verified
5 months ago
raw
Copy download link
history
blame
Safe
211 Bytes
import
os
import
uvicorn
from
fastapi
import
FastAPI
app = FastAPI()
@app.get(
"/"
)
def
hello
():
return
{
"message"
:
"running"
}
if
__name__ ==
"__main__"
:
uvicorn.run(app, host=
"0.0.0.0"
, port=
7860
)