Download app.py from SubLabAI/Subflow: direct link, hf CLI and curl.
- Browser
- Download file 323 Bytes
-
https://huggingface.co/spaces/SubLabAI/Subflow/resolve/c2ff9cee5d0eab23fe9712b65fbf88f83e1acbc0/app.py
- Command line
-
hf download hf://spaces/SubLabAI/Subflow@c2ff9cee5d0eab23fe9712b65fbf88f83e1acbc0/app.py
-
curl -L -o app.py https://huggingface.co/spaces/SubLabAI/Subflow/resolve/c2ff9cee5d0eab23fe9712b65fbf88f83e1acbc0/app.py
323 Bytes
| from fastapi import FastAPI | |
| from fastapi.middleware.cors import CORSMiddleware | |
| app = FastAPI() | |
| app.add_middleware( | |
| CORSMiddleware, | |
| allow_origins=["*"], | |
| allow_methods=["*"], | |
| allow_headers=["*"], | |
| ) | |
| async def health(): | |
| return {"status": "ok", "message": "SubFlow backend is running"} |