Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
madnesslab
/
test-rest
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
test-rest
/
main.py
mithenks
feat: create hello world endpoint
bbc7254
about 1 year ago
raw
Copy download link
history
blame
contribute
delete
Safe
139 Bytes
from
fastapi
import
FastAPI
app = FastAPI()
@app.get(
"/"
)
def
app_hello_world
():
return
{
"success"
:
True
,
"message"
:
"Hello World!"
}