Update app.py
Browse files
app.py
CHANGED
|
@@ -75,7 +75,7 @@ def compress_history(formatted_prompt):
|
|
| 75 |
return output
|
| 76 |
|
| 77 |
|
| 78 |
-
def question_generate(prompt, history, agent_name=agents[0], sys_prompt="", temperature=0.9, max_new_tokens=
|
| 79 |
#def question_generate(prompt, history):
|
| 80 |
seed = random.randint(1,1111111111111111)
|
| 81 |
agent=prompts.COMMENTER.format(focus=main_point[0])
|
|
@@ -159,8 +159,8 @@ def load_html(inp):
|
|
| 159 |
print(f'outp:: {outp}')
|
| 160 |
print(f'prom:: {prom}')
|
| 161 |
ht+=f"""<div class="div_box">
|
| 162 |
-
<
|
| 163 |
-
<
|
| 164 |
</div>"""
|
| 165 |
with open('index.html','r') as h:
|
| 166 |
html=h.read()
|
|
|
|
| 75 |
return output
|
| 76 |
|
| 77 |
|
| 78 |
+
def question_generate(prompt, history, agent_name=agents[0], sys_prompt="", temperature=0.9, max_new_tokens=1028, top_p=0.95, repetition_penalty=1.0,):
|
| 79 |
#def question_generate(prompt, history):
|
| 80 |
seed = random.randint(1,1111111111111111)
|
| 81 |
agent=prompts.COMMENTER.format(focus=main_point[0])
|
|
|
|
| 159 |
print(f'outp:: {outp}')
|
| 160 |
print(f'prom:: {prom}')
|
| 161 |
ht+=f"""<div class="div_box">
|
| 162 |
+
<div class="resp">{outp}</div>
|
| 163 |
+
<div class="resp">{prom}</div>
|
| 164 |
</div>"""
|
| 165 |
with open('index.html','r') as h:
|
| 166 |
html=h.read()
|