tagny commited on
Commit
9426a60
·
verified ·
1 Parent(s): 2ac474f

fix: Clone a new agent per session to isolate the session conversation from others

Browse files
Files changed (1) hide show
  1. Gradio_UI.py +1 -1
Gradio_UI.py CHANGED
@@ -214,7 +214,7 @@ class GradioUI:
214
  raise ModuleNotFoundError(
215
  "Please install 'gradio' extra to use the GradioUI: `pip install 'smolagents[gradio]'`"
216
  )
217
- self.agent_cloner = AgentCloner(agent, model)
218
  self.file_upload_folder = file_upload_folder
219
  if self.file_upload_folder is not None:
220
  if not os.path.exists(file_upload_folder):
 
214
  raise ModuleNotFoundError(
215
  "Please install 'gradio' extra to use the GradioUI: `pip install 'smolagents[gradio]'`"
216
  )
217
+ self.agent_cloner = AgentCloner(agent)
218
  self.file_upload_folder = file_upload_folder
219
  if self.file_upload_folder is not None:
220
  if not os.path.exists(file_upload_folder):