Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
zrydys
/
ml-demo
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
ml-demo
/
app.py
jc
hugg-adding-/v
3ce9201
9 months ago
raw
Copy download link
history
blame
contribute
delete
Safe
190 Bytes
from
fastapi
import
FastAPI
app = FastAPI()
@app.get(
"/"
)
def
greet_json
():
return
{
"stat"
:
"running!"
,
"checks"
:
"/v"
}
@app.get(
"/v"
)
def
ver_json
():
return
{
"vers"
:
"24.10.10"
}