Update app.py
Browse files
app.py
CHANGED
@@ -537,7 +537,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
537 |
# Handle file URL with conditional fallback to generic attachment endpoint
|
538 |
raw_url = item.get("file_url") or ""
|
539 |
if not raw_url: # field missing
|
540 |
-
raw_url = discover_attachment(task_id, api_url
|
541 |
file_url = raw_url # already absolute
|
542 |
|
543 |
# Get the question text
|
|
|
537 |
# Handle file URL with conditional fallback to generic attachment endpoint
|
538 |
raw_url = item.get("file_url") or ""
|
539 |
if not raw_url: # field missing
|
540 |
+
raw_url = discover_attachment(task_id, api_url) or ""
|
541 |
file_url = raw_url # already absolute
|
542 |
|
543 |
# Get the question text
|