Omnibus commited on
Commit
2c63529
·
verified ·
1 Parent(s): d0d78a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -228,10 +228,10 @@ def save_memory(purpose, history):
228
  print(e)
229
  timestamp=str(datetime.datetime.now())
230
  timename=timestamp.replace(" ","--").replace(":","-").replace(".","-")
231
- json_object=[resp]
232
  #json_object = json.dumps(out_box)
233
  #json_object = json.dumps(out_box,indent=4)
234
- with open("tmp1.json", "w") as outfile:
235
  outfile.write(json_object)
236
  api.upload_file(
237
  path_or_fileobj=f"tmp-{uid}.json",
 
228
  print(e)
229
  timestamp=str(datetime.datetime.now())
230
  timename=timestamp.replace(" ","--").replace(":","-").replace(".","-")
231
+ json_object=resp
232
  #json_object = json.dumps(out_box)
233
  #json_object = json.dumps(out_box,indent=4)
234
+ with open(f"tmp-{uid}.json", "w") as outfile:
235
  outfile.write(json_object)
236
  api.upload_file(
237
  path_or_fileobj=f"tmp-{uid}.json",