DeDeckerThomas commited on
Commit
b44219b
·
1 Parent(s): 6cbb4e3

Test out of the box tools

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,7 +2,7 @@ import os
2
  import gradio as gr
3
  import requests
4
  import pandas as pd
5
- from smolagents import CodeAgent, DuckDuckGoSearchTool, WikipediaSearchTool, OpenAIServerModel
6
 
7
  # (Keep Constants as is)
8
  # --- Constants ---
@@ -19,7 +19,7 @@ class GAIAAgent:
19
  )
20
 
21
  def __call__(self, question: str) -> str:
22
- agent = CodeAgent(tools=[DuckDuckGoSearchTool(), WikipediaSearchTool()], model=self.model)
23
  return agent.run(question)
24
 
25
  def run_and_submit_all( profile: gr.OAuthProfile | None):
 
2
  import gradio as gr
3
  import requests
4
  import pandas as pd
5
+ from smolagents import CodeAgent, DuckDuckGoSearchTool, WikipediaSearchTool, OpenAIServerModel, PythonInterpreterTool, VisitWebpageTool
6
 
7
  # (Keep Constants as is)
8
  # --- Constants ---
 
19
  )
20
 
21
  def __call__(self, question: str) -> str:
22
+ agent = CodeAgent(tools=[DuckDuckGoSearchTool(), WikipediaSearchTool(), PythonInterpreterTool(), VisitWebpageTool()], model=self.model)
23
  return agent.run(question)
24
 
25
  def run_and_submit_all( profile: gr.OAuthProfile | None):