Spaces:
Paused
Paused
Download controllers/test_controller.py from UcsTurkey/flare: direct link, hf CLI and curl.
- Browser
- Download file 415 Bytes
-
https://huggingface.co/spaces/UcsTurkey/flare/resolve/refs%2Fpr%2F1/controllers/test_controller.py
- Command line
-
hf download hf://spaces/UcsTurkey/flare@refs/pr/1/controllers/test_controller.py
-
curl -L -o test_controller.py https://huggingface.co/spaces/UcsTurkey/flare/resolve/refs%2Fpr%2F1/controllers/test_controller.py
415 Bytes
| from fastapi import APIRouter | |
| import threading | |
| import intent_test_runner | |
| from log import log | |
| router = APIRouter() | |
| def run_tests(): | |
| log("🚦 /run_tests çağrıldı. Testler başlatılıyor...") | |
| threading.Thread(target=intent_test_runner.run_all_tests, daemon=True).start() | |
| return {"status": "running", "message": "Test süreci başlatıldı."} | |