Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
Haride
/
HelloHF
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
HelloHF
/
app.py
Haride
Update app.py
6f69689
verified
5 months ago
Raw
Download with hf CLI
Copy download link
History
Blame
Contribute
Delete
Safe
255 Bytes
from
fastapi
import
FastAPI, Response
app = FastAPI()
@app.get(
"/"
)
def
greet_json
():
return
{
"Hello"
:
"World!"
}
@app.get(
"/health"
)
def
health
():
return
{
"ok"
:
True
}
@app.head(
"/health"
)
def
health_head
():
return
Response(status_code=
200
)