naman1102 commited on
Commit
afe6455
·
1 Parent(s): 9af06bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, sess) or ""
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