ammr commited on
Commit
cce3585
·
verified ·
1 Parent(s): 5ff6eb9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -4,6 +4,7 @@ import requests
4
  import inspect
5
  import pandas as pd
6
 
 
7
 
8
  # (Keep Constants as is)
9
  # --- Constants ---
@@ -30,7 +31,7 @@ class myAgent:
30
  )
31
 
32
  self.agent = CodeAgent(
33
- model=llm,
34
  tools=[DuckDuckGoSearchTool()],#, WikipediaSearchTool(), SpeechToTextTool(), ExcelToTextTool()],
35
  add_base_tools=True,
36
  additional_authorized_imports=['pandas','numpy','csv']
 
4
  import inspect
5
  import pandas as pd
6
 
7
+ from smolagents import InferenceClientModel
8
 
9
  # (Keep Constants as is)
10
  # --- Constants ---
 
31
  )
32
 
33
  self.agent = CodeAgent(
34
+ model=InferenceClientModel(llm=llm),
35
  tools=[DuckDuckGoSearchTool()],#, WikipediaSearchTool(), SpeechToTextTool(), ExcelToTextTool()],
36
  add_base_tools=True,
37
  additional_authorized_imports=['pandas','numpy','csv']