Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -211,9 +211,12 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
211 |
# 2. Fetch Questions
|
212 |
print(f"Fetching questions from: {questions_url}")
|
213 |
try:
|
214 |
-
|
215 |
-
|
216 |
-
|
|
|
|
|
|
|
217 |
total_questions = create_mock_questions()
|
218 |
questions_data = total_questions[:NUMERO_DOMANDE_TOTALE]
|
219 |
if not questions_data:
|
|
|
211 |
# 2. Fetch Questions
|
212 |
print(f"Fetching questions from: {questions_url}")
|
213 |
try:
|
214 |
+
response = requests.get(questions_url, timeout=15)
|
215 |
+
response.raise_for_status()
|
216 |
+
total_questions = response.json()
|
217 |
+
print("\n\n")
|
218 |
+
print(f"total_questions: {total_questions}")
|
219 |
+
print("\n\n")
|
220 |
total_questions = create_mock_questions()
|
221 |
questions_data = total_questions[:NUMERO_DOMANDE_TOTALE]
|
222 |
if not questions_data:
|