at1300 commited on
Commit
7397935
·
verified ·
1 Parent(s): 0081723

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -74,7 +74,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
74
  try:
75
  response = requests.get(questions_url, timeout=15)
76
  response.raise_for_status()
77
- questions_data = response.json()
78
  if not questions_data:
79
  print("Fetched questions list is empty.")
80
  return "Fetched questions list is empty or invalid format.", None
 
74
  try:
75
  response = requests.get(questions_url, timeout=15)
76
  response.raise_for_status()
77
+ questions_data = [response.json()] # REMOVE BRACKETS WHEN SWITCHING TO ALL QUESTIONS
78
  if not questions_data:
79
  print("Fetched questions list is empty.")
80
  return "Fetched questions list is empty or invalid format.", None