Spaces:
Sleeping
Sleeping
Download main.py from vxrachit/fastapi-hf: direct link, hf CLI and curl.
- Browser
- Download file 202 Bytes
-
https://huggingface.co/spaces/vxrachit/fastapi-hf/resolve/main/main.py
- Command line
-
hf download hf://spaces/vxrachit/fastapi-hf/main.py
-
curl -L -o main.py https://huggingface.co/spaces/vxrachit/fastapi-hf/resolve/main/main.py
202 Bytes
| from fastapi import FastAPI | |
| app = FastAPI() | |
| def root(): | |
| return {"message": "FastAPI running successfully!"} | |
| def health(): | |
| return {"status": "ok"} | |