Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -203,7 +203,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 203 |
response = requests.get(questions_url, timeout=15)
|
| 204 |
response.raise_for_status()
|
| 205 |
questions_data = response.json()
|
| 206 |
-
questions_data = questions_data[:
|
| 207 |
if not questions_data:
|
| 208 |
print("Fetched questions list is empty.")
|
| 209 |
return "Fetched questions list is empty or invalid format.", None
|
|
|
|
| 203 |
response = requests.get(questions_url, timeout=15)
|
| 204 |
response.raise_for_status()
|
| 205 |
questions_data = response.json()
|
| 206 |
+
questions_data = questions_data[:2]
|
| 207 |
if not questions_data:
|
| 208 |
print("Fetched questions list is empty.")
|
| 209 |
return "Fetched questions list is empty or invalid format.", None
|