Update app.py
Browse files
app.py
CHANGED
@@ -238,6 +238,7 @@ def generate(prompt, history, post_check, agent_name=agents[0], sys_prompt="", t
|
|
238 |
post_cnt=1
|
239 |
seed = random.randint(1,1111111111111111)
|
240 |
if not post_check:
|
|
|
241 |
generate_kwargs = dict(
|
242 |
temperature=temperature,
|
243 |
max_new_tokens=max_new_tokens2,
|
@@ -319,7 +320,8 @@ def generate(prompt, history, post_check, agent_name=agents[0], sys_prompt="", t
|
|
319 |
html_out=load_html(full_conv,title)
|
320 |
post_check={'user':"",'datetime':current_time,'title':title,'blog':1,'comment':0,'reply':0}
|
321 |
yield prompt, history,post_check, summary[0],json_obj,json_hist,html_out
|
322 |
-
|
|
|
323 |
|
324 |
def generate_OG(prompt, history, agent_name=agents[0], sys_prompt="", temperature=0.9, max_new_tokens=1048, top_p=0.95, repetition_penalty=1.0):
|
325 |
html_out=""
|
|
|
238 |
post_cnt=1
|
239 |
seed = random.randint(1,1111111111111111)
|
240 |
if not post_check:
|
241 |
+
print("writing blog")
|
242 |
generate_kwargs = dict(
|
243 |
temperature=temperature,
|
244 |
max_new_tokens=max_new_tokens2,
|
|
|
320 |
html_out=load_html(full_conv,title)
|
321 |
post_check={'user':"",'datetime':current_time,'title':title,'blog':1,'comment':0,'reply':0}
|
322 |
yield prompt, history,post_check, summary[0],json_obj,json_hist,html_out
|
323 |
+
else:
|
324 |
+
print("passing blog")
|
325 |
|
326 |
def generate_OG(prompt, history, agent_name=agents[0], sys_prompt="", temperature=0.9, max_new_tokens=1048, top_p=0.95, repetition_penalty=1.0):
|
327 |
html_out=""
|