Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=
|
| 232 |
#json_object = json.dumps(out_box)
|
| 233 |
#json_object = json.dumps(out_box,indent=4)
|
| 234 |
-
with open("
|
| 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",
|