Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -371,10 +371,10 @@ Compile and categorize the data above into a JSON dictionary string
|
|
371 |
Include ALL text, datapoints, titles, descriptions, and source urls indexed into an easy to search JSON format
|
372 |
Your final response should be only the final formatted JSON string enclosed in brackets, and nothing else.
|
373 |
Required keys:
|
374 |
-
"keywords":["short", "list", "of", "keywords", "
|
375 |
"title":"title of entry"
|
376 |
-
"description":"summary of the entry"
|
377 |
-
"content":"
|
378 |
"url":"https://url.source"
|
379 |
"""
|
380 |
|
@@ -425,8 +425,7 @@ def save_memory(purpose, history):
|
|
425 |
#new_history = resp
|
426 |
print (resp)
|
427 |
#out+=resp
|
428 |
-
|
429 |
-
s=s+chunk-1000
|
430 |
print ("final1" + resp)
|
431 |
try:
|
432 |
resp='[{'+resp.split('[{')[1].split('</s>')[0]
|
@@ -495,6 +494,8 @@ def save_memory(purpose, history):
|
|
495 |
token=token_self,
|
496 |
repo_type="dataset",
|
497 |
)
|
|
|
|
|
498 |
out_box.append(resp)
|
499 |
return out_box
|
500 |
|
|
|
371 |
Include ALL text, datapoints, titles, descriptions, and source urls indexed into an easy to search JSON format
|
372 |
Your final response should be only the final formatted JSON string enclosed in brackets, and nothing else.
|
373 |
Required keys:
|
374 |
+
"keywords":["short", "list", "of", "important", "keywords", "found", "in", "this", "entry"]
|
375 |
"title":"title of entry"
|
376 |
+
"description":"brief summary of the entry"
|
377 |
+
"content":"exhaustive summary of the datapoints found"
|
378 |
"url":"https://url.source"
|
379 |
"""
|
380 |
|
|
|
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]
|
|
|
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 |
|