Spaces:
Runtime error
Runtime error
Download src/similarity_model/sync_projects.py from InnoTrack/Graduation_Project-v1.2: direct link, hf CLI and curl.
- Browser
- Download file 426 Bytes
-
https://huggingface.co/spaces/InnoTrack/Graduation_Project-v1.2/resolve/main/src/similarity_model/sync_projects.py
- Command line
-
hf download hf://spaces/InnoTrack/Graduation_Project-v1.2/src/similarity_model/sync_projects.py
-
curl -L -o sync_projects.py https://huggingface.co/spaces/InnoTrack/Graduation_Project-v1.2/resolve/main/src/similarity_model/sync_projects.py
426 Bytes
| import sys | |
| from pathlib import Path | |
| # Ensure workspace root is in path | |
| sys.path.append(str(Path(__file__).resolve().parents[2])) | |
| from src.similarity_model.sync_worker import run_worker | |
| def sync_projects(): | |
| """ | |
| Entry point to run the event-driven synchronization worker. | |
| This replaces the old 60-second polling-based full-table scan loop. | |
| """ | |
| run_worker() | |
| if __name__ == "__main__": | |
| sync_projects() | |