Sonu313131 commited on
Commit
f20a12d
·
verified ·
1 Parent(s): 8387a52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -35,7 +35,12 @@ async def run_and_submit_all(profile: gr.OAuthProfile | None):
35
  try:
36
  response = requests.get(questions_url, timeout=15)
37
  response.raise_for_status()
38
- questions_data = response.json()[0,2,3,4,5,8,9,10,11,14,15,16,18]
 
 
 
 
 
39
  if not questions_data:
40
  yield "Fetched questions list is empty or invalid format.", None, log_output
41
  return
 
35
  try:
36
  response = requests.get(questions_url, timeout=15)
37
  response.raise_for_status()
38
+ questions_data = response.json()
39
+
40
+ selected_indices = [0,2,3,4,5,8,9,10,11,14,15,16,18] # 2nd, 5th, 6th, and 8th questions
41
+ questions_data = [questions_data[i] for i in selected_indices if i < len(questions_data)]
42
+
43
+
44
  if not questions_data:
45
  yield "Fetched questions list is empty or invalid format.", None, log_output
46
  return