Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -255,7 +255,8 @@ def save_memory(purpose, history):
|
|
255 |
#option_drop=[]
|
256 |
for i,line in enumerate(lines):
|
257 |
if "keywords" in line[:16]:
|
258 |
-
keyw=line.split("[")[1].split("]")[0]
|
|
|
259 |
print(keyw)
|
260 |
lod.append({"file_name":timename,"keywords":keyw})
|
261 |
with open(f"tmp2-{uid}.json", "w") as outfile2:
|
|
|
255 |
#option_drop=[]
|
256 |
for i,line in enumerate(lines):
|
257 |
if "keywords" in line[:16]:
|
258 |
+
#keyw=line.split("[")[1].split("]")[0]
|
259 |
+
keyw=line
|
260 |
print(keyw)
|
261 |
lod.append({"file_name":timename,"keywords":keyw})
|
262 |
with open(f"tmp2-{uid}.json", "w") as outfile2:
|