Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|