Omnibus commited on
Commit
dd56eb5
1 Parent(s): 1c64c3b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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=256, 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,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
- <pre class="resp">{outp}</pre>
163
- <pre class="resp">{prom}</pre>
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()