Spaces:
Sleeping
Sleeping
Download scripts/ingest_seasons.py from otito254/epl-predictor-api: direct link, hf CLI and curl.
- Browser
- Download file 364 Bytes
-
https://huggingface.co/spaces/otito254/epl-predictor-api/resolve/main/scripts/ingest_seasons.py
- Command line
-
hf download hf://spaces/otito254/epl-predictor-api/scripts/ingest_seasons.py
-
curl -L -o ingest_seasons.py https://huggingface.co/spaces/otito254/epl-predictor-api/resolve/main/scripts/ingest_seasons.py
364 Bytes
| """Run this once to load all historical seasons into Supabase.""" | |
| import sys, os | |
| sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | |
| from app.services.ingest_service import ingest_all | |
| import logging | |
| logging.basicConfig(level=logging.INFO) | |
| if __name__ == "__main__": | |
| ingest_all() | |
| print("✅ All seasons ingested successfully") | |