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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -44,7 +44,7 @@ top_p=0.95
44
  repetition_penalty=1.0,
45
 
46
  def compress_history(formatted_prompt):
47
-
48
  seed = random.randint(1,1111111111111111)
49
  agent=prompts.COMPRESS_HISTORY_PROMPT.format(history=summary[0],focus=main_point[0])
50
 
@@ -77,6 +77,7 @@ def compress_history(formatted_prompt):
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])
82
  system_prompt=agent
@@ -106,6 +107,7 @@ def question_generate(prompt, history, agent_name=agents[0], sys_prompt="", temp
106
 
107
  def blog_poster_reply(prompt, history, agent_name=agents[0], sys_prompt="", temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0,):
108
  #def question_generate(prompt, history):
 
109
  seed = random.randint(1,1111111111111111)
110
  agent=prompts.REPLY_TO_COMMENTER.format(focus=main_point[0])
111
  system_prompt=agent
 
44
  repetition_penalty=1.0,
45
 
46
  def compress_history(formatted_prompt):
47
+ print("###############\nRUNNING COMPRESS HISTORY\n###############\n")
48
  seed = random.randint(1,1111111111111111)
49
  agent=prompts.COMPRESS_HISTORY_PROMPT.format(history=summary[0],focus=main_point[0])
50
 
 
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
+ print("###############\nRUNNING QUESTION GENERATOR\n###############\n")
81
  seed = random.randint(1,1111111111111111)
82
  agent=prompts.COMMENTER.format(focus=main_point[0])
83
  system_prompt=agent
 
107
 
108
  def blog_poster_reply(prompt, history, agent_name=agents[0], sys_prompt="", temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0,):
109
  #def question_generate(prompt, history):
110
+ print("###############\nRUNNING BLOG POSTER REPLY\n###############\n")
111
  seed = random.randint(1,1111111111111111)
112
  agent=prompts.REPLY_TO_COMMENTER.format(focus=main_point[0])
113
  system_prompt=agent