Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -373,8 +373,8 @@ Your final response should be only the final formatted JSON string enclosed in b
|
|
| 373 |
Required keys:
|
| 374 |
"keywords":["short", "list", "of", "important", "keywords", "found", "in", "this", "entry"]
|
| 375 |
"title":"title of entry"
|
| 376 |
-
"description":"
|
| 377 |
-
"content":"
|
| 378 |
"url":"https://url.source"
|
| 379 |
"""
|
| 380 |
|
|
@@ -386,7 +386,7 @@ def save_memory(purpose, history):
|
|
| 386 |
rl = len(inp)
|
| 387 |
print(f'rl:: {rl}')
|
| 388 |
for i in str(inp):
|
| 389 |
-
if i == " " or i=="," or i=="\n" or i=="/" or i=="." or i=="<":
|
| 390 |
c +=1
|
| 391 |
print (f'c:: {c}')
|
| 392 |
|
|
@@ -494,8 +494,8 @@ def save_memory(purpose, history):
|
|
| 494 |
token=token_self,
|
| 495 |
repo_type="dataset",
|
| 496 |
)
|
| 497 |
-
ee=ee+chunk-
|
| 498 |
-
s=s+chunk-
|
| 499 |
out_box.append(resp)
|
| 500 |
return out_box
|
| 501 |
|
|
|
|
| 373 |
Required keys:
|
| 374 |
"keywords":["short", "list", "of", "important", "keywords", "found", "in", "this", "entry"]
|
| 375 |
"title":"title of entry"
|
| 376 |
+
"description":"A sentence summarizing the topic of this entry"
|
| 377 |
+
"content":"A brief paragraph summarizing the important datapoints found in this entry"
|
| 378 |
"url":"https://url.source"
|
| 379 |
"""
|
| 380 |
|
|
|
|
| 386 |
rl = len(inp)
|
| 387 |
print(f'rl:: {rl}')
|
| 388 |
for i in str(inp):
|
| 389 |
+
if i == " " or i=="," or i=="\n" or i=="/" or i=="\\" or i=="." or i=="<":
|
| 390 |
c +=1
|
| 391 |
print (f'c:: {c}')
|
| 392 |
|
|
|
|
| 494 |
token=token_self,
|
| 495 |
repo_type="dataset",
|
| 496 |
)
|
| 497 |
+
ee=ee+chunk-100
|
| 498 |
+
s=s+chunk-100
|
| 499 |
out_box.append(resp)
|
| 500 |
return out_box
|
| 501 |
|