Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
rizoa
/
ngeboot
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
ngeboot
/
app.py
Riza Masykur
ok
f2c7219
3 months ago
raw
Copy download link
history
blame
contribute
delete
Safe
202 Bytes
import
os
from
fastapi
import
FastAPI
app = FastAPI()
@app.get(
"/"
)
def
greet_json
():
return
{
"Hello"
:
"World!"
}
@app.get(
"/gas"
)
def
greet_ajson
():
return
{
"Hello"
: os.getenv(
"SITENAME"
)}