Omnibus commited on
Commit
db22734
1 Parent(s): c7e6625

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -281,7 +281,7 @@ def compress_data_og(c, instruct, history):
281
 
282
 
283
  RECALL_MEMORY="""
284
- The user will give you a query, and you will pick keywords from the provided KEYWORD LIST that will be used to search for information about the query.
285
  Your response will be only a list of keywords.
286
  Example Response:
287
  [keyword1,keyword2,keyword3]
@@ -676,6 +676,8 @@ def save_memory(purpose, history):
676
  def recall_memory(inp,history):
677
  error_box=""
678
  json_out={}
 
 
679
  r = requests.get(f'{save_data}mem-test2/index.json')
680
  print(f'status code main:: {r.status_code}')
681
  if r.status_code==200:
 
281
 
282
 
283
  RECALL_MEMORY="""
284
+ The user will give you a query, and you will find every relevant keyword from the provided KEYWORD LIST that will be used to search for information about the query.
285
  Your response will be only a list of keywords.
286
  Example Response:
287
  [keyword1,keyword2,keyword3]
 
676
  def recall_memory(inp,history):
677
  error_box=""
678
  json_out={}
679
+ if not history:
680
+ history=[]
681
  r = requests.get(f'{save_data}mem-test2/index.json')
682
  print(f'status code main:: {r.status_code}')
683
  if r.status_code==200: