Spaces:
Paused
Paused
Download apps/renderer/config/qa.py from modventures/prevision: direct link, hf CLI and curl.
- Browser
- Download file 902 Bytes
-
https://huggingface.co/spaces/modventures/prevision/resolve/main/apps/renderer/config/qa.py
- Command line
-
hf download hf://spaces/modventures/prevision/apps/renderer/config/qa.py
-
curl -L -o qa.py https://huggingface.co/spaces/modventures/prevision/resolve/main/apps/renderer/config/qa.py
902 Bytes
| from config.loader import REPO_ROOT, config_value | |
| from pathlib import Path | |
| QA_FRONTEND_URL = str(config_value( | |
| "QA_FRONTEND_URL", "qa", "frontend_url", "", | |
| )).strip().rstrip("/") | |
| QA_BACKEND_URL = str(config_value( | |
| "QA_BACKEND_URL", "qa", "backend_url", "", | |
| )).strip().rstrip("/") | |
| QA_FRONTEND_DIR = Path(str(config_value( | |
| "QA_FRONTEND_DIR", "qa", "frontend_dir", | |
| str(REPO_ROOT / "frontend" / "viz2d-demo"), | |
| ))).expanduser() | |
| QA_MAX_IMAGES = max(1, int(config_value( | |
| "QA_MAX_IMAGES", "qa", "max_images", "50", | |
| ))) | |
| QA_MAX_TESTS = max(1, int(config_value( | |
| "QA_MAX_TESTS", "qa", "max_tests", "200", | |
| ))) | |
| QA_RUN_TIMEOUT_SECONDS = max(60, int(config_value( | |
| "QA_RUN_TIMEOUT_SECONDS", "qa", "run_timeout_seconds", "7200", | |
| ))) | |
| QA_PRESIGNED_URL_EXPIRES_SECONDS = max(60, int(config_value( | |
| "QA_PRESIGNED_URL_EXPIRES_SECONDS", "qa", "presigned_url_expires_seconds", "3600", | |
| ))) | |