Update app.py
Browse files
app.py
CHANGED
|
@@ -68,6 +68,11 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 68 |
print("Fetched questions list is empty.")
|
| 69 |
return "Fetched questions list is empty or invalid format.", None
|
| 70 |
print(f"Fetched {len(questions_data)} questions.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
except requests.exceptions.RequestException as e:
|
| 72 |
print(f"Error fetching questions: {e}")
|
| 73 |
return f"Error fetching questions: {e}", None
|
|
@@ -79,10 +84,6 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 79 |
print(f"An unexpected error occurred fetching questions: {e}")
|
| 80 |
return f"An unexpected error occurred fetching questions: {e}", None
|
| 81 |
|
| 82 |
-
print("\n🧩 TASK IDs and Questions for Reference:")
|
| 83 |
-
for item in questions_data:
|
| 84 |
-
print(f"{item['task_id']}: {item['question']}")
|
| 85 |
-
|
| 86 |
|
| 87 |
# 3. Run your Agent
|
| 88 |
results_log = []
|
|
|
|
| 68 |
print("Fetched questions list is empty.")
|
| 69 |
return "Fetched questions list is empty or invalid format.", None
|
| 70 |
print(f"Fetched {len(questions_data)} questions.")
|
| 71 |
+
|
| 72 |
+
print("\n🧩 TASK IDs and Questions for Reference:")
|
| 73 |
+
for item in questions_data:
|
| 74 |
+
print(f"{item['task_id']}: {item['question']}")
|
| 75 |
+
|
| 76 |
except requests.exceptions.RequestException as e:
|
| 77 |
print(f"Error fetching questions: {e}")
|
| 78 |
return f"Error fetching questions: {e}", None
|
|
|
|
| 84 |
print(f"An unexpected error occurred fetching questions: {e}")
|
| 85 |
return f"An unexpected error occurred fetching questions: {e}", None
|
| 86 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
|
| 88 |
# 3. Run your Agent
|
| 89 |
results_log = []
|