zonca commited on
Commit
d71aa4c
·
1 Parent(s): 33d4a53

don't modify model

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,7 +5,7 @@ import inspect
5
  import pandas as pd
6
 
7
  # Updated smolagents import
8
- from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel
9
 
10
  # (Keep Constants as is)
11
  # --- Constants ---
@@ -18,7 +18,7 @@ class MyAgent:
18
  # Standard tools for CodeAgent
19
  self.tools = [DuckDuckGoSearchTool()]
20
  # You can add more tools if needed
21
- self.agent = CodeAgent(tools=self.tools, model=HfApiModel())
22
 
23
  def __call__(self, question: str) -> str:
24
  # Use the agent to answer the question
 
5
  import pandas as pd
6
 
7
  # Updated smolagents import
8
+ from smolagents import CodeAgent, DuckDuckGoSearchTool
9
 
10
  # (Keep Constants as is)
11
  # --- Constants ---
 
18
  # Standard tools for CodeAgent
19
  self.tools = [DuckDuckGoSearchTool()]
20
  # You can add more tools if needed
21
+ self.agent = CodeAgent(tools=self.tools)
22
 
23
  def __call__(self, question: str) -> str:
24
  # Use the agent to answer the question