Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Projetweb
/
AiServices
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
38eba8d
AiServices
/
server.py
ikraamkb
Create server.py
76fbd63
verified
about 1 month ago
raw
Copy download link
history
blame
Safe
229 Bytes
from
fastapi
import
FastAPI
app = FastAPI()
@app.get(
"/"
)
def
read_root
():
return
{
"message"
:
"FastAPI on Hugging Face Spaces"
}
if
__name__ ==
"__main__"
:
import
uvicorn
uvicorn.run(app, host=
"0.0.0.0"
, port=
7860
)