Update app.py
Browse files
app.py
CHANGED
@@ -172,10 +172,11 @@ def comment_generate(prompt, history,post_check,full_conv,persona2, agent_name=a
|
|
172 |
|
173 |
|
174 |
comment_json= {'user':persona[persona2]['name'],'datetime':current_time,'comment':output,'reply_list':[]}
|
|
|
175 |
|
176 |
out_json = {'user':post_check['user'],'datetime':post_check['datetime'],'file_name':post_check['file_name'],
|
177 |
'title':post_check['title'],'blog':1,'comment':post_check['comment']+1,'reply':post_check['reply'],
|
178 |
-
"prompt":post_check['prompt'],"output":post_check['output'],'comment_list':
|
179 |
|
180 |
|
181 |
|
|
|
172 |
|
173 |
|
174 |
comment_json= {'user':persona[persona2]['name'],'datetime':current_time,'comment':output,'reply_list':[]}
|
175 |
+
comment_out=post_check['comment_list'].append(comment_json)
|
176 |
|
177 |
out_json = {'user':post_check['user'],'datetime':post_check['datetime'],'file_name':post_check['file_name'],
|
178 |
'title':post_check['title'],'blog':1,'comment':post_check['comment']+1,'reply':post_check['reply'],
|
179 |
+
"prompt":post_check['prompt'],"output":post_check['output'],'comment_list':comment_out}
|
180 |
|
181 |
|
182 |
|