Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
APOGEA
/
apiExample
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
3c80574
apiExample
/
app
/
main.py
rwheel
Upload 4 files
3c80574
over 2 years ago
raw
Copy download link
history
blame
139 Bytes
from
fastapi
import
FastAPI
app = FastAPI()
@app.get(
"/items/{name}"
)
async
def
say_hello
(
name
):
return
{
"message"
:
f"Hello
{name}
!"
}