Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -215,16 +215,25 @@ def save_memory(purpose, history):
|
|
| 215 |
out+=resp
|
| 216 |
e=e+chunk
|
| 217 |
s=s+chunk
|
| 218 |
-
resp=resp.
|
|
|
|
|
|
|
| 219 |
lines = resp.strip().strip("\n").split("\n")
|
| 220 |
skills=[]
|
| 221 |
skill_dict={}
|
| 222 |
for i,line in enumerate(lines):
|
| 223 |
print(f'Line:: {line}')
|
| 224 |
-
skills.append(resp)
|
| 225 |
-
print ("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 226 |
#history = "result: {}\n".format(resp)
|
| 227 |
-
return
|
| 228 |
|
| 229 |
|
| 230 |
|
|
|
|
| 215 |
out+=resp
|
| 216 |
e=e+chunk
|
| 217 |
s=s+chunk
|
| 218 |
+
resp=resp.split('</s>')[0]
|
| 219 |
+
print ("final1" + resp)
|
| 220 |
+
|
| 221 |
lines = resp.strip().strip("\n").split("\n")
|
| 222 |
skills=[]
|
| 223 |
skill_dict={}
|
| 224 |
for i,line in enumerate(lines):
|
| 225 |
print(f'Line:: {line}')
|
| 226 |
+
#skills.append(resp)
|
| 227 |
+
print ("final2" + resp)
|
| 228 |
+
try:
|
| 229 |
+
out=json.dumps(resp)
|
| 230 |
+
print(f'test1:: {test1}')
|
| 231 |
+
|
| 232 |
+
except Excetption as e:
|
| 233 |
+
skills.append(resp)
|
| 234 |
+
out=skills
|
| 235 |
#history = "result: {}\n".format(resp)
|
| 236 |
+
return out
|
| 237 |
|
| 238 |
|
| 239 |
|