Omnibus commited on
Commit
92c03a6
·
verified ·
1 Parent(s): c58ef48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -112,8 +112,7 @@ def comment_generate(prompt, history,post_check,full_conv, agent_name=agents[0],
112
  seed = random.randint(1,1111111111111111)
113
  #agent=prompts.COMMENTER.format(focus=main_point[0])
114
  #bp,_,_=full_conv[0]
115
- bp=full_conv[0][0]
116
- agent=prompts.COMMENTER.format(focus=bp)
117
  system_prompt=agent
118
  temperature = float(temperature)
119
  if temperature < 1e-2:
@@ -162,7 +161,7 @@ def reply_generate(prompt, history,post_check,full_conv, agent_name=agents[0], s
162
  print(f'full_conv::\n{full_conv}')
163
  print("###############\nRUNNING QUESTION GENERATOR\n###############\n")
164
  seed = random.randint(1,1111111111111111)
165
- agent=prompts.REPLY_TO_COMMENTER.format(focus=main_point[0])
166
  system_prompt=agent
167
  temperature = float(temperature)
168
  if temperature < 1e-2:
 
112
  seed = random.randint(1,1111111111111111)
113
  #agent=prompts.COMMENTER.format(focus=main_point[0])
114
  #bp,_,_=full_conv[0]
115
+ agent=prompts.COMMENTER.format(focus=full_conv[0][0])
 
116
  system_prompt=agent
117
  temperature = float(temperature)
118
  if temperature < 1e-2:
 
161
  print(f'full_conv::\n{full_conv}')
162
  print("###############\nRUNNING QUESTION GENERATOR\n###############\n")
163
  seed = random.randint(1,1111111111111111)
164
+ agent=prompts.REPLY_TO_COMMENTER.format(focus=full_conv[0][0],comment=full_conv[1][1])
165
  system_prompt=agent
166
  temperature = float(temperature)
167
  if temperature < 1e-2: