Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,7 +74,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 74 |
try:
|
| 75 |
response = requests.get(questions_url, timeout=15)
|
| 76 |
response.raise_for_status()
|
| 77 |
-
questions_data = response.json()
|
| 78 |
if not questions_data:
|
| 79 |
print("Fetched questions list is empty.")
|
| 80 |
return "Fetched questions list is empty or invalid format.", None
|
|
|
|
| 74 |
try:
|
| 75 |
response = requests.get(questions_url, timeout=15)
|
| 76 |
response.raise_for_status()
|
| 77 |
+
questions_data = [response.json()] # REMOVE BRACKETS WHEN SWITCHING TO ALL QUESTIONS
|
| 78 |
if not questions_data:
|
| 79 |
print("Fetched questions list is empty.")
|
| 80 |
return "Fetched questions list is empty or invalid format.", None
|