pedrogaprieto commited on
Commit
d141ce9
·
verified ·
1 Parent(s): c1f9ac6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -70,8 +70,12 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
70
  response = requests.get(questions_url, timeout=15)
71
  response.raise_for_status()
72
  questions_data = response.json()
 
 
73
  # reduce the number of questions
74
- questions_data = questions_data[:5]
 
 
75
  if not questions_data:
76
  print("Fetched questions list is empty.")
77
  return "Fetched questions list is empty or invalid format.", None
@@ -115,7 +119,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
115
  print(status_update)
116
 
117
  results_df = pd.DataFrame(results_log)
118
- return status_message, results_df
119
 
120
  # 5. Submit
121
  """
 
70
  response = requests.get(questions_url, timeout=15)
71
  response.raise_for_status()
72
  questions_data = response.json()
73
+
74
+
75
  # reduce the number of questions
76
+ questions_data = questions_data[:2]
77
+
78
+
79
  if not questions_data:
80
  print("Fetched questions list is empty.")
81
  return "Fetched questions list is empty or invalid format.", None
 
119
  print(status_update)
120
 
121
  results_df = pd.DataFrame(results_log)
122
+ return status_update, results_df
123
 
124
  # 5. Submit
125
  """