prozorov commited on
Commit
cefcef2
·
verified ·
1 Parent(s): 947871c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -57,7 +57,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
57
  try:
58
  response = requests.get(questions_url, timeout=15)
59
  response.raise_for_status()
60
- questions_data = response.json()
61
  if not questions_data:
62
  print("Fetched questions list is empty.")
63
  return "Fetched questions list is empty or invalid format.", None
 
57
  try:
58
  response = requests.get(questions_url, timeout=15)
59
  response.raise_for_status()
60
+ questions_data = response.json()[:1]
61
  if not questions_data:
62
  print("Fetched questions list is empty.")
63
  return "Fetched questions list is empty or invalid format.", None