Spaces:
Sleeping
Sleeping
Download app.py from Kenta-drs/FastapiSample3: direct link, hf CLI and curl.
- Browser
- Download file 283 Bytes
-
https://huggingface.co/spaces/Kenta-drs/FastapiSample3/resolve/main/app.py
- Command line
-
hf download hf://spaces/Kenta-drs/FastapiSample3/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Kenta-drs/FastapiSample3/resolve/main/app.py
283 Bytes
| from fastapi import FastAPI | |
| app = FastAPI(title="Deploying FastAPI Apps on Huggingface") | |
| def api_home(): | |
| return {'detail': 'Welcome to FastAPI Tutorial!'} | |
| def hello(name: str): | |
| return {'message': f"hello {name}!"} |