Sonu313131 commited on
Commit
a821976
·
verified ·
1 Parent(s): 9651da6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -141,6 +141,10 @@ async def run_and_submit_all(profile: gr.OAuthProfile | None):
141
  response = requests.get(questions_url, timeout=15)
142
  response.raise_for_status()
143
  questions_data = response.json()
 
 
 
 
144
  if not questions_data:
145
  yield "Fetched questions list is empty or invalid format.", None, log_output
146
  return
 
141
  response = requests.get(questions_url, timeout=15)
142
  response.raise_for_status()
143
  questions_data = response.json()
144
+
145
+ selected_indices = [0, 2, 4, 6, 10, 12, 14, 15] # Replace with the indices you want
146
+ questions_data = [questions_data[i] for i in selected_indices if i < len(questions_data)]
147
+
148
  if not questions_data:
149
  yield "Fetched questions list is empty or invalid format.", None, log_output
150
  return