Omnibus commited on
Commit
644e87c
1 Parent(s): 08a3a8b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -159,8 +159,8 @@ def load_html(inp,title):
159
  for i,ea in enumerate(inp):
160
 
161
  outp,prom=ea
162
- print(f'outp:: {outp}')
163
- print(f'prom:: {prom}')
164
  if i == 0:
165
  ht+=f"""<div class="div_box">
166
  <pre class="bpost">{outp}</pre>
@@ -236,6 +236,8 @@ def generate(prompt, history, agent_name=agents[0], sys_prompt="", temperature=0
236
  prompt=prompt.strip(' \"')
237
 
238
  formatted_prompt = format_prompt(f"{system_prompt}, {prompt}", history)
 
 
239
  if len(formatted_prompt) < (40000):
240
  print(len(formatted_prompt))
241
 
 
159
  for i,ea in enumerate(inp):
160
 
161
  outp,prom=ea
162
+ #print(f'outp:: {outp}')
163
+ #print(f'prom:: {prom}')
164
  if i == 0:
165
  ht+=f"""<div class="div_box">
166
  <pre class="bpost">{outp}</pre>
 
236
  prompt=prompt.strip(' \"')
237
 
238
  formatted_prompt = format_prompt(f"{system_prompt}, {prompt}", history)
239
+ print("###############\nRUNNING REPLY TO COMMENTER\n###############\n")
240
+ print (system_prompt)
241
  if len(formatted_prompt) < (40000):
242
  print(len(formatted_prompt))
243