Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -215,8 +215,8 @@ async def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
| 215 |
if "excel" in question_text.lower() or "mp3" in question_text.lower() or "pitchers" in question_text.lower():
|
| 216 |
file_path = await check_n_load_attach(session, task_id, question_text.lower())
|
| 217 |
result = await process_question(agent, question_text, task_id, file_path, results_log)
|
| 218 |
-
|
| 219 |
-
|
| 220 |
else:
|
| 221 |
print("Skipping unrelated question.")
|
| 222 |
|
|
@@ -251,6 +251,7 @@ with gr.Blocks() as demo:
|
|
| 251 |
gr.Markdown("# Magus Agent Evaluation Runner")
|
| 252 |
gr.Markdown(
|
| 253 |
"""
|
|
|
|
| 254 |
**Instructions:**
|
| 255 |
1. Log in to your Hugging Face account using the button below.
|
| 256 |
2. Click 'Run Evaluation & Submit All Answers' to fetch questions, run your agent, and submit answers.
|
|
|
|
| 215 |
if "excel" in question_text.lower() or "mp3" in question_text.lower() or "pitchers" in question_text.lower():
|
| 216 |
file_path = await check_n_load_attach(session, task_id, question_text.lower())
|
| 217 |
result = await process_question(agent, question_text, task_id, file_path, results_log)
|
| 218 |
+
if result:
|
| 219 |
+
answers_payload.append(result)
|
| 220 |
else:
|
| 221 |
print("Skipping unrelated question.")
|
| 222 |
|
|
|
|
| 251 |
gr.Markdown("# Magus Agent Evaluation Runner")
|
| 252 |
gr.Markdown(
|
| 253 |
"""
|
| 254 |
+
|
| 255 |
**Instructions:**
|
| 256 |
1. Log in to your Hugging Face account using the button below.
|
| 257 |
2. Click 'Run Evaluation & Submit All Answers' to fetch questions, run your agent, and submit answers.
|