Omnibus commited on
Commit
74644ec
·
verified ·
1 Parent(s): 24a223a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -107,6 +107,7 @@ def comment_generate(prompt, history,post_check, agent_name=agents[0], sys_promp
107
  #def question_generate(prompt, history):
108
  print(post_check)
109
  full_conv=history
 
110
  print("###############\nRUNNING QUESTION GENERATOR\n###############\n")
111
  seed = random.randint(1,1111111111111111)
112
  agent=prompts.COMMENTER.format(focus=main_point[0])
@@ -140,7 +141,7 @@ def comment_generate(prompt, history,post_check, agent_name=agents[0], sys_promp
140
  print(type(comment_cnt))
141
  post_check['comment']=comment_cnt+1
142
  #out_json = {'user':"",'datetime':current_time,'title':title,'blog':1,'comment':0,'reply':0,"prompt":prompt,"output":output}
143
- full_conv.append((output))
144
  html_out=load_html(full_conv,None)
145
 
146
  #history.append((output,history))
 
107
  #def question_generate(prompt, history):
108
  print(post_check)
109
  full_conv=history
110
+ print(f'full_conv::\n{full_conv}')
111
  print("###############\nRUNNING QUESTION GENERATOR\n###############\n")
112
  seed = random.randint(1,1111111111111111)
113
  agent=prompts.COMMENTER.format(focus=main_point[0])
 
141
  print(type(comment_cnt))
142
  post_check['comment']=comment_cnt+1
143
  #out_json = {'user':"",'datetime':current_time,'title':title,'blog':1,'comment':0,'reply':0,"prompt":prompt,"output":output}
144
+ full_conv[-1].append(output)
145
  html_out=load_html(full_conv,None)
146
 
147
  #history.append((output,history))