Placeholder run to prevent unnecessary consumption of resources.
Browse files
app.py
CHANGED
@@ -113,14 +113,15 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
113 |
print(f"Running agent on {len(questions_data)} questions...")
|
114 |
question_index = 1
|
115 |
for item in questions_data:
|
|
|
116 |
task_id = item.get("task_id")
|
117 |
question_text = item.get("question")
|
118 |
if not task_id or question_text is None:
|
119 |
-
print(f"Skipping item with missing task_id or question: {item}")
|
120 |
continue
|
121 |
try:
|
122 |
-
|
123 |
-
|
124 |
answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
|
125 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
|
126 |
print(f"✅ Successful handling of question #: {question_index}")
|
@@ -129,8 +130,9 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
129 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
|
130 |
|
131 |
question_index = question_index + 1
|
132 |
-
|
133 |
-
|
|
|
134 |
|
135 |
if not answers_payload:
|
136 |
print("Agent did not produce any answers to submit.")
|
|
|
113 |
print(f"Running agent on {len(questions_data)} questions...")
|
114 |
question_index = 1
|
115 |
for item in questions_data:
|
116 |
+
print(f"ℹ️ Handling question #: {question_index}")
|
117 |
task_id = item.get("task_id")
|
118 |
question_text = item.get("question")
|
119 |
if not task_id or question_text is None:
|
120 |
+
print(f"⚠️Skipping item with missing task_id or question: {item}")
|
121 |
continue
|
122 |
try:
|
123 |
+
#submitted_answer = agent(question_text)
|
124 |
+
sumbitted_answer = "Placeholder"
|
125 |
answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
|
126 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
|
127 |
print(f"✅ Successful handling of question #: {question_index}")
|
|
|
130 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
|
131 |
|
132 |
question_index = question_index + 1
|
133 |
+
|
134 |
+
# REMOVE: prevent payload submission!!!
|
135 |
+
return
|
136 |
|
137 |
if not answers_payload:
|
138 |
print("Agent did not produce any answers to submit.")
|