Spaces:
Paused
Paused
fix: Clone a new agent per session to isolate the session conversation from others
Browse files- Gradio_UI.py +1 -1
Gradio_UI.py
CHANGED
@@ -184,7 +184,7 @@ class AgentCloner:
|
|
184 |
self.agent = agent
|
185 |
self.model_client = agent.model
|
186 |
|
187 |
-
def clone():
|
188 |
new_model_client = HfApiModel(
|
189 |
max_tokens=self.model.max_tokens,
|
190 |
temperature=self.model.temperature,
|
|
|
184 |
self.agent = agent
|
185 |
self.model_client = agent.model
|
186 |
|
187 |
+
def clone(self):
|
188 |
new_model_client = HfApiModel(
|
189 |
max_tokens=self.model.max_tokens,
|
190 |
temperature=self.model.temperature,
|