Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -423,10 +423,10 @@ def save_memory(purpose, history):
|
|
| 423 |
history=hist,
|
| 424 |
).strip('\n')
|
| 425 |
#new_history = resp
|
| 426 |
-
print (resp)
|
| 427 |
#out+=resp
|
| 428 |
|
| 429 |
-
print ("final1" + resp)
|
| 430 |
try:
|
| 431 |
resp='[{'+resp.split('[{')[1].split('</s>')[0]
|
| 432 |
print ("final2\n" + resp)
|
|
@@ -494,9 +494,9 @@ def save_memory(purpose, history):
|
|
| 494 |
token=token_self,
|
| 495 |
repo_type="dataset",
|
| 496 |
)
|
| 497 |
-
|
| 498 |
-
|
| 499 |
-
|
| 500 |
return out_box
|
| 501 |
|
| 502 |
|
|
|
|
| 423 |
history=hist,
|
| 424 |
).strip('\n')
|
| 425 |
#new_history = resp
|
| 426 |
+
#print (resp)
|
| 427 |
#out+=resp
|
| 428 |
|
| 429 |
+
#print ("final1" + resp)
|
| 430 |
try:
|
| 431 |
resp='[{'+resp.split('[{')[1].split('</s>')[0]
|
| 432 |
print ("final2\n" + resp)
|
|
|
|
| 494 |
token=token_self,
|
| 495 |
repo_type="dataset",
|
| 496 |
)
|
| 497 |
+
ee=ee+chunk-1000
|
| 498 |
+
s=s+chunk-1000
|
| 499 |
+
out_box.append(resp)
|
| 500 |
return out_box
|
| 501 |
|
| 502 |
|