Omnibus commited on
Commit
1a2db9c
·
verified ·
1 Parent(s): 6f59869

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -221,8 +221,9 @@ def save_memory(purpose, history):
221
  s=s+chunk
222
  print ("final1" + resp)
223
  try:
224
- resp=resp.split('</s>')[0]
225
- print ("final2" + resp)
 
226
  except Exception as e:
227
  resp = resp
228
  print(e)
 
221
  s=s+chunk
222
  print ("final1" + resp)
223
  try:
224
+ resp='[{'+resp.split('[{')[1].split('</s>')[0]
225
+ print ("final2\n" + resp)
226
+ print(f"keywords:: {resp['keywords']}")
227
  except Exception as e:
228
  resp = resp
229
  print(e)