Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -264,7 +264,7 @@ def save_memory(purpose, history):
|
|
| 264 |
print (keyw.split("[")[1].split("]")[0])
|
| 265 |
keyw=keyw.split("[")[1].split("]")[0]
|
| 266 |
print(keyw)
|
| 267 |
-
lod.append({"file_name":timename,"keywords":keyw})
|
| 268 |
json_object = json.dumps(lod, indent=4)
|
| 269 |
with open(f"tmp2-{uid}.json", "w") as outfile2:
|
| 270 |
outfile2.write(json_object)
|
|
|
|
| 264 |
print (keyw.split("[")[1].split("]")[0])
|
| 265 |
keyw=keyw.split("[")[1].split("]")[0]
|
| 266 |
print(keyw)
|
| 267 |
+
lod.append({"file_name":timename,"keywords":[keyw]})
|
| 268 |
json_object = json.dumps(lod, indent=4)
|
| 269 |
with open(f"tmp2-{uid}.json", "w") as outfile2:
|
| 270 |
outfile2.write(json_object)
|