Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -228,10 +228,7 @@ class HfAgentWrapper:
|
|
228 |
|
229 |
# --- Step 3: Pass the PRE-INITIALIZED pipeline object to HfAgent ---
|
230 |
print("Initializing HfAgent with the pre-created pipeline...")
|
231 |
-
self.agent =
|
232 |
-
llm_pipeline, # Pass the pipeline object directly as the first argument
|
233 |
-
additional_tools=self.actual_tools_for_agent
|
234 |
-
)
|
235 |
print("HfAgent successfully instantiated with pre-initialized pipeline.")
|
236 |
|
237 |
except Exception as e:
|
|
|
228 |
|
229 |
# --- Step 3: Pass the PRE-INITIALIZED pipeline object to HfAgent ---
|
230 |
print("Initializing HfAgent with the pre-created pipeline...")
|
231 |
+
self.agent = MyCustomHfAgent(llm_pipeline, additional_tools=self.actual_tools_for_agent)
|
|
|
|
|
|
|
232 |
print("HfAgent successfully instantiated with pre-initialized pipeline.")
|
233 |
|
234 |
except Exception as e:
|