Spaces:
Sleeping
Sleeping
Download app.py from SAadmin/pdf-trainer-api: direct link, hf CLI and curl.
- Browser
- Download file 401 Bytes
-
https://huggingface.co/spaces/SAadmin/pdf-trainer-api/resolve/main/app.py
- Command line
-
hf download hf://spaces/SAadmin/pdf-trainer-api/app.py
-
curl -L -o app.py https://huggingface.co/spaces/SAadmin/pdf-trainer-api/resolve/main/app.py
401 Bytes
| # EXISTING IMPORTS (keep as-is) | |
| from fastapi import FastAPI | |
| # ... all your other imports (DO NOT TOUCH) | |
| app = FastAPI() | |
| # ✅ ADD THIS ONLY (top, after app creation) | |
| def root(): | |
| return {"status": "ok"} | |
| # ------------------------ | |
| # EVERYTHING BELOW = YOUR EXISTING CODE | |
| # DO NOT MODIFY | |
| # ------------------------ | |
| # your existing routes... | |
| # your gmail logic... | |
| # your endpoints... |