Omnibus commited on
Commit
6c79277
·
verified ·
1 Parent(s): 7df3040

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -169,7 +169,7 @@ def comment_generate(prompt, history,post_check,full_conv,persona2, agent_name=a
169
  comment_json= {'user':persona[persona2]['name'],'datetime':current_time,'comment':output,'reply_list':[]}
170
 
171
  out_json = {'user':persona[persona1]['name'],'datetime':post_check['datetime'],'file_name':post_check['filename'],
172
- 'title':post_check['title'],'blog':1,'comment':post_check['comment']+=1,'reply':post_check['reply'],
173
  "prompt":post_check['prompt'],"output":post_check['output'],'comment_list':post_check['comment_list'].append(comment_json)}
174
 
175
 
@@ -260,7 +260,7 @@ def reply_generate(prompt, history,post_check,full_conv,persona1, agent_name=age
260
 
261
 
262
  out_json = {'user':persona[persona1]['name'],'datetime':post_check['datetime'],'file_name':post_check['filename'],
263
- 'title':post_check['title'],'blog':1,'comment':0,'reply':post_check['reply']+=1,"prompt":post_check['prompt'],"output":post_check['output'],'comment_list':post_check['comment_list']}
264
 
265
  hist_out.append(out_json)
266
  #try:
 
169
  comment_json= {'user':persona[persona2]['name'],'datetime':current_time,'comment':output,'reply_list':[]}
170
 
171
  out_json = {'user':persona[persona1]['name'],'datetime':post_check['datetime'],'file_name':post_check['filename'],
172
+ 'title':post_check['title'],'blog':1,'comment':post_check['comment']+1,'reply':post_check['reply'],
173
  "prompt":post_check['prompt'],"output":post_check['output'],'comment_list':post_check['comment_list'].append(comment_json)}
174
 
175
 
 
260
 
261
 
262
  out_json = {'user':persona[persona1]['name'],'datetime':post_check['datetime'],'file_name':post_check['filename'],
263
+ 'title':post_check['title'],'blog':1,'comment':0,'reply':post_check['reply']+1,"prompt":post_check['prompt'],"output":post_check['output'],'comment_list':post_check['comment_list']}
264
 
265
  hist_out.append(out_json)
266
  #try: