Spaces:
Runtime error
Runtime error
Download app.py from maroof2424/fastapi: direct link, hf CLI and curl.
- Browser
- Download file 237 Bytes
-
https://huggingface.co/spaces/maroof2424/fastapi/resolve/main/app.py
- Command line
-
hf download hf://spaces/maroof2424/fastapi/app.py
-
curl -L -o app.py https://huggingface.co/spaces/maroof2424/fastapi/resolve/main/app.py
237 Bytes
| from fastapi import FastAPI | |
| app = FastAPI() | |
| def home(): | |
| return {"message": "Hello from FastAPI on Hugging Face Spaces!"} | |
| def greet(name: str = "Maroof"): | |
| return {"greeting": f"Hello, {name}!"} | |