Errolmking commited on
Commit
598730d
·
1 Parent(s): 210484f

Update app.py

Browse files

removed persistent memory across usages! put the instantiation of the ask_agent

Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -200,9 +200,8 @@ agent_prompt = """
200
 
201
  """
202
 
203
- dds = DDSAgent('agent', db, prompt_template=agent_prompt)
204
-
205
  def ask_agent(input, history):
 
206
  for next_token, content in dds.stream(input):
207
  yield(content)
208
 
 
200
 
201
  """
202
 
 
 
203
  def ask_agent(input, history):
204
+ dds = DDSAgent('agent', db, prompt_template=agent_prompt)
205
  for next_token, content in dds.stream(input):
206
  yield(content)
207