Spaces:
Sleeping
Sleeping
Download scripts/startup.py from ax2183/forward-deployed-ai-sim: direct link, hf CLI and curl.
- Browser
- Download file 465 Bytes
-
https://huggingface.co/spaces/ax2183/forward-deployed-ai-sim/resolve/main/scripts/startup.py
- Command line
-
hf download hf://spaces/ax2183/forward-deployed-ai-sim/scripts/startup.py
-
curl -L -o startup.py https://huggingface.co/spaces/ax2183/forward-deployed-ai-sim/resolve/main/scripts/startup.py
465 Bytes
| """Startup script: rebuild DB + seed feedback for deployment. | |
| Run this before launching the Streamlit app to ensure data exists. | |
| """ | |
| import sys | |
| import os | |
| sys.path.insert(0, os.getcwd()) | |
| from scripts.run_pipeline import run_pipeline | |
| from scripts.seed_feedback import seed_feedback | |
| print("=== Startup: rebuilding pipeline data ===") | |
| run_pipeline(use_mock=True) | |
| print("\n=== Startup: seeding feedback data ===") | |
| seed_feedback() | |
| print("\n=== Startup complete ===") | |