Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -382,7 +382,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 382 |
response = requests.get(questions_url, timeout=15)
|
| 383 |
response.raise_for_status()
|
| 384 |
questions_data = response.json()
|
| 385 |
-
questions_data = questions_data[:
|
| 386 |
if not questions_data:
|
| 387 |
print("Fetched questions list is empty.")
|
| 388 |
return "Fetched questions list is empty or invalid format.", None
|
|
|
|
| 382 |
response = requests.get(questions_url, timeout=15)
|
| 383 |
response.raise_for_status()
|
| 384 |
questions_data = response.json()
|
| 385 |
+
questions_data = questions_data[:4]
|
| 386 |
if not questions_data:
|
| 387 |
print("Fetched questions list is empty.")
|
| 388 |
return "Fetched questions list is empty or invalid format.", None
|