DragonProgrammer commited on
Commit
4fc51a0
·
verified ·
1 Parent(s): ac13bdb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
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 = HfAgent(
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: