Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
189 |
-
|
|
|
|
|
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...")
|