Spaces:
Running on T4
Running on T4
Debug: log preliminary flag in _run_api + run() startup
Browse files
app.py
CHANGED
|
@@ -65,6 +65,8 @@ def _run_api(dataset: str, profile: str, version: str, open_pr: bool,
|
|
| 65 |
sliced to the first asset only. Used by the dashboard's
|
| 66 |
Preliminary scan tab.
|
| 67 |
"""
|
|
|
|
|
|
|
| 68 |
result = run_validator(
|
| 69 |
dataset=(dataset or "").strip(),
|
| 70 |
profile=profile or DEFAULT_PROFILE,
|
|
|
|
| 65 |
sliced to the first asset only. Used by the dashboard's
|
| 66 |
Preliminary scan tab.
|
| 67 |
"""
|
| 68 |
+
print(f"[run_api] preliminary={preliminary!r} force={force!r} "
|
| 69 |
+
f"submission_id={submission_id!r}", flush=True)
|
| 70 |
result = run_validator(
|
| 71 |
dataset=(dataset or "").strip(),
|
| 72 |
profile=profile or DEFAULT_PROFILE,
|
runner.py
CHANGED
|
@@ -1336,8 +1336,11 @@ def run(
|
|
| 1336 |
validation, so per-asset checks run on one sample asset only.
|
| 1337 |
"""
|
| 1338 |
out = log or (lambda s: print(s, flush=True))
|
| 1339 |
-
|
| 1340 |
-
|
|
|
|
|
|
|
|
|
|
| 1341 |
|
| 1342 |
token = hf_token or os.environ.get("HF_TOKEN") or os.environ.get("HUGGING_FACE_HUB_TOKEN")
|
| 1343 |
api = HfApi(token=token)
|
|
|
|
| 1336 |
validation, so per-asset checks run on one sample asset only.
|
| 1337 |
"""
|
| 1338 |
out = log or (lambda s: print(s, flush=True))
|
| 1339 |
+
flags = []
|
| 1340 |
+
if force: flags.append("force")
|
| 1341 |
+
if preliminary: flags.append("preliminary")
|
| 1342 |
+
flag_str = f" ({', '.join(flags)})" if flags else ""
|
| 1343 |
+
out(f"[{_now()}] validating dataset={dataset} profile={profile} v{version}{flag_str}")
|
| 1344 |
|
| 1345 |
token = hf_token or os.environ.get("HF_TOKEN") or os.environ.get("HUGGING_FACE_HUB_TOKEN")
|
| 1346 |
api = HfApi(token=token)
|