Download app.py from sangamai/fastapi: direct link, hf CLI and curl.
- Browser
- Download file 239 Bytes
-
https://huggingface.co/spaces/sangamai/fastapi/resolve/main/app.py
- Command line
-
hf download hf://spaces/sangamai/fastapi/app.py
-
curl -L -o app.py https://huggingface.co/spaces/sangamai/fastapi/resolve/main/app.py
239 Bytes
| from fastapi import FastAPI | |
| import uvicorn | |
| app = FastAPI() | |
| async def root(): | |
| return {"message": "Hello World"} | |
| async def say_hello(name: str): | |
| return {"message": f"Hello {name}"} | |