Update app.py
Browse files
app.py
CHANGED
|
@@ -133,7 +133,7 @@ def comment_generate(prompt, history,post_check,full_conv,persona2, agent_name=a
|
|
| 133 |
seed = random.randint(1,1111111111111111)
|
| 134 |
#agent=prompts.COMMENTER.format(focus=main_point[0])
|
| 135 |
#bp,_,_=full_conv[0]
|
| 136 |
-
agent=prompts.COMMENTER.format(focus=
|
| 137 |
system_prompt=agent
|
| 138 |
temperature = float(temperature)
|
| 139 |
if temperature < 1e-2:
|
|
|
|
| 133 |
seed = random.randint(1,1111111111111111)
|
| 134 |
#agent=prompts.COMMENTER.format(focus=main_point[0])
|
| 135 |
#bp,_,_=full_conv[0]
|
| 136 |
+
agent=prompts.COMMENTER.format(focus=post_check['output'],persona=persona[persona2]['personality'])
|
| 137 |
system_prompt=agent
|
| 138 |
temperature = float(temperature)
|
| 139 |
if temperature < 1e-2:
|