RCaz commited on
Commit
532c3ff
·
verified ·
1 Parent(s): 3f5d44e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -69,6 +69,11 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
69
  for item in questions_data:
70
  task_id = item.get("task_id")
71
  question_text = item.get("question")
 
 
 
 
 
72
  if not task_id or question_text is None:
73
  print(f"Skipping item with missing task_id or question: {item}")
74
  continue
 
69
  for item in questions_data:
70
  task_id = item.get("task_id")
71
  question_text = item.get("question")
72
+ # add fetching the link associated with the question
73
+ file_name = item.get("file_name")
74
+ if file_name:
75
+ question_text = question_text + "\n\nProvided file path: " + DEFAULT_API_URL + "/" + file_name
76
+ # end insertion
77
  if not task_id or question_text is None:
78
  print(f"Skipping item with missing task_id or question: {item}")
79
  continue