Spaces:
Build error
Build error
submit all questions not only one
Browse files
app.py
CHANGED
|
@@ -91,7 +91,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 91 |
results_log = []
|
| 92 |
answers_payload = []
|
| 93 |
print(f"Running agent on {len(questions_data)} questions...")
|
| 94 |
-
for item in questions_data
|
| 95 |
task_id = item.get("task_id")
|
| 96 |
question_text = item.get("question")
|
| 97 |
if not task_id or question_text is None:
|
|
@@ -208,7 +208,7 @@ def run_evaluation_only(profile: gr.OAuthProfile | None):
|
|
| 208 |
# 3. Run your Agent
|
| 209 |
results_log = []
|
| 210 |
print(f"Running agent on {len(questions_data)} questions...")
|
| 211 |
-
for item in questions_data
|
| 212 |
task_id = item.get("task_id")
|
| 213 |
question_text = item.get("question")
|
| 214 |
if not task_id or question_text is None:
|
|
@@ -226,7 +226,7 @@ def run_evaluation_only(profile: gr.OAuthProfile | None):
|
|
| 226 |
|
| 227 |
# --- Build Gradio Interface using Blocks ---
|
| 228 |
with gr.Blocks() as demo:
|
| 229 |
-
gr.Markdown("# Walid's Basic Agent Evaluation Runner (
|
| 230 |
gr.Markdown(
|
| 231 |
"""
|
| 232 |
**Instructions:**
|
|
|
|
| 91 |
results_log = []
|
| 92 |
answers_payload = []
|
| 93 |
print(f"Running agent on {len(questions_data)} questions...")
|
| 94 |
+
for item in questions_data:
|
| 95 |
task_id = item.get("task_id")
|
| 96 |
question_text = item.get("question")
|
| 97 |
if not task_id or question_text is None:
|
|
|
|
| 208 |
# 3. Run your Agent
|
| 209 |
results_log = []
|
| 210 |
print(f"Running agent on {len(questions_data)} questions...")
|
| 211 |
+
for item in questions_data:
|
| 212 |
task_id = item.get("task_id")
|
| 213 |
question_text = item.get("question")
|
| 214 |
if not task_id or question_text is None:
|
|
|
|
| 226 |
|
| 227 |
# --- Build Gradio Interface using Blocks ---
|
| 228 |
with gr.Blocks() as demo:
|
| 229 |
+
gr.Markdown("# Walid's Basic Agent Evaluation Runner (v3)")
|
| 230 |
gr.Markdown(
|
| 231 |
"""
|
| 232 |
**Instructions:**
|