Download app.py from nclsprsn/oasis-api: direct link, hf CLI and curl.
- Browser
- Download file 264 Bytes
-
https://huggingface.co/spaces/nclsprsn/oasis-api/resolve/main/app.py
- Command line
-
hf download hf://spaces/nclsprsn/oasis-api/app.py
-
curl -L -o app.py https://huggingface.co/spaces/nclsprsn/oasis-api/resolve/main/app.py
264 Bytes
| from fastapi import FastAPI | |
| app = FastAPI() | |
| async def root(): | |
| return {"message": "Hello World"} | |
| async def health(): | |
| return {"status": "healthy"} | |
| async def status(): | |
| return {"status": "running"} | |