Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
navpan2
/
check
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
d88d753
check
/
app.py
navpan2
Create app.py
0fa8907
verified
12 days ago
raw
Copy download link
history
blame
227 Bytes
from
fastapi
import
FastAPI
app = FastAPI()
@app.get(
"/"
)
def
root
():
return
{
"message"
:
"Hello from Hugging Face Docker!"
}
@app.get(
"/replacement"
)
def
get_replacement
():
return
{
"text"
:
"This is from the server!"
}