Update app.py
Browse files
app.py
CHANGED
@@ -296,7 +296,7 @@ def generate(prompt, history, post_check, agent_name=agents[0], sys_prompt="", t
|
|
296 |
history = []
|
297 |
output = compress_history(formatted_prompt)
|
298 |
summary[0]=output
|
299 |
-
sum_json = {"summary":summary[0]}
|
300 |
sum_out.append(sum_json)
|
301 |
with open(f'{uid}-sum.json', 'w') as f:
|
302 |
json_obj=json.dumps(sum_out, indent=4)
|
@@ -317,7 +317,7 @@ def generate(prompt, history, post_check, agent_name=agents[0], sys_prompt="", t
|
|
317 |
|
318 |
|
319 |
html_out=load_html(full_conv,title)
|
320 |
-
post_check
|
321 |
yield prompt, history,post_check, summary[0],json_obj,json_hist,html_out
|
322 |
|
323 |
|
|
|
296 |
history = []
|
297 |
output = compress_history(formatted_prompt)
|
298 |
summary[0]=output
|
299 |
+
sum_json = {'user':"",'datetime':current_time,'title':title,'blog':1,'comment':0,'reply':0,"summary":summary[0]}
|
300 |
sum_out.append(sum_json)
|
301 |
with open(f'{uid}-sum.json', 'w') as f:
|
302 |
json_obj=json.dumps(sum_out, indent=4)
|
|
|
317 |
|
318 |
|
319 |
html_out=load_html(full_conv,title)
|
320 |
+
post_check={'user':"",'datetime':current_time,'title':title,'blog':1,'comment':0,'reply':0}
|
321 |
yield prompt, history,post_check, summary[0],json_obj,json_hist,html_out
|
322 |
|
323 |
|