DragonProgrammer commited on
Commit
c8f9c6a
·
verified ·
1 Parent(s): 5dc5094

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -185,8 +185,10 @@ class HfAgentWrapper:
185
  print(f"Prepared Tool objects with names: {tool_names_for_log} and descriptions.")
186
 
187
  # Initialize HfAgent with the list of Tool objects
188
- self.agent = HfAgent(model_repo, additional_tools=self.actual_tools_for_agent)
189
- print(f"HfAgent successfully instantiated with model {model_repo}.")
 
 
190
 
191
  # --- New robust way to inspect the toolbox ---
192
  print(f"Inspecting self.agent.toolbox...")
 
185
  print(f"Prepared Tool objects with names: {tool_names_for_log} and descriptions.")
186
 
187
  # Initialize HfAgent with the list of Tool objects
188
+ self.agent = HfAgent(
189
+ model_repo,
190
+ tools=[], # Attempt to provide an empty list for default tools
191
+ additional_tools=self.actual_tools_for_agent
192
 
193
  # --- New robust way to inspect the toolbox ---
194
  print(f"Inspecting self.agent.toolbox...")