Update app.py
Browse files
app.py
CHANGED
@@ -123,17 +123,13 @@ def compress_history(formatted_prompt):
|
|
123 |
|
124 |
|
125 |
def comment_generate(prompt, history,post_check,full_conv,persona2, agent_name=agents[0], sys_prompt="", temperature=0.9, max_new_tokens=1028, top_p=0.95, repetition_penalty=1.3,):
|
126 |
-
#def question_generate(prompt, history):
|
127 |
current_time = str(datetime.datetime.now())
|
128 |
uid=uuid.uuid4()
|
129 |
print(post_check)
|
130 |
-
#full_conv=history
|
131 |
-
#print(f'full_conv::\n{full_conv}')
|
132 |
print("###############\nRUNNING QUESTION GENERATOR\n###############\n")
|
133 |
seed = random.randint(1,1111111111111111)
|
134 |
-
|
135 |
-
|
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:
|
|
|
123 |
|
124 |
|
125 |
def comment_generate(prompt, history,post_check,full_conv,persona2, agent_name=agents[0], sys_prompt="", temperature=0.9, max_new_tokens=1028, top_p=0.95, repetition_penalty=1.3,):
|
|
|
126 |
current_time = str(datetime.datetime.now())
|
127 |
uid=uuid.uuid4()
|
128 |
print(post_check)
|
|
|
|
|
129 |
print("###############\nRUNNING QUESTION GENERATOR\n###############\n")
|
130 |
seed = random.randint(1,1111111111111111)
|
131 |
+
agent=prompts.COMMENT.format(focus=post_check['output'],persona=persona[persona2]['personality'])
|
132 |
+
|
|
|
133 |
system_prompt=agent
|
134 |
temperature = float(temperature)
|
135 |
if temperature < 1e-2:
|