Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -177,10 +177,10 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
| 177 |
# 2. Fetch Questions
|
| 178 |
print(f"Fetching questions from: {questions_url}")
|
| 179 |
try:
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
|
| 185 |
# DEBUG: Print format of each question
|
| 186 |
print("\n=== QUESTION FORMATS DEBUG ===")
|
|
|
|
| 177 |
# 2. Fetch Questions
|
| 178 |
print(f"Fetching questions from: {questions_url}")
|
| 179 |
try:
|
| 180 |
+
response = requests.get(questions_url, timeout=20)
|
| 181 |
+
response.raise_for_status()
|
| 182 |
+
questions_data = response.json()
|
| 183 |
+
print(f"Fetched {len(questions_data)} questions.")
|
| 184 |
|
| 185 |
# DEBUG: Print format of each question
|
| 186 |
print("\n=== QUESTION FORMATS DEBUG ===")
|