Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -70,6 +70,8 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 70 |
prompt_templates=prompt_templates
|
| 71 |
)
|
| 72 |
|
|
|
|
|
|
|
| 73 |
|
| 74 |
#agent = BasicAgent()
|
| 75 |
except Exception as e:
|
|
@@ -112,7 +114,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 112 |
continue
|
| 113 |
try:
|
| 114 |
#submitted_answer = agent.run(question_text)
|
| 115 |
-
submitted_answer = agent.run("
|
| 116 |
answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
|
| 117 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
|
| 118 |
except Exception as e:
|
|
|
|
| 70 |
prompt_templates=prompt_templates
|
| 71 |
)
|
| 72 |
|
| 73 |
+
model = InferenceClientModel()
|
| 74 |
+
agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=model)
|
| 75 |
|
| 76 |
#agent = BasicAgent()
|
| 77 |
except Exception as e:
|
|
|
|
| 114 |
continue
|
| 115 |
try:
|
| 116 |
#submitted_answer = agent.run(question_text)
|
| 117 |
+
submitted_answer = agent.run("How many seconds would it take for a leopard at full speed to run through Pont des Arts?")
|
| 118 |
answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
|
| 119 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
|
| 120 |
except Exception as e:
|