Thanh Vinh Vo commited on
Commit
b259c09
·
1 Parent(s): 9dd4c4e
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -95,7 +95,7 @@ def run_and_submit_all(questions_index: str, profile: gr.OAuthProfile | None):
95
  try:
96
  response = requests.get(questions_url, timeout=15)
97
  response.raise_for_status()
98
- questions_data = [response.json()[QUESTION_INDEX]] if QUESTION_INDEX > 0 else response.json()
99
  if not questions_data:
100
  print("Fetched questions list is empty.")
101
  return "Fetched questions list is empty or invalid format.", None
 
95
  try:
96
  response = requests.get(questions_url, timeout=15)
97
  response.raise_for_status()
98
+ questions_data = [response.json()[QUESTION_INDEX]] if QUESTION_INDEX >= 0 else response.json()
99
  if not questions_data:
100
  print("Fetched questions list is empty.")
101
  return "Fetched questions list is empty or invalid format.", None