Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|