Omnibus commited on
Commit
c58ef48
·
verified ·
1 Parent(s): 9e9992f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -111,7 +111,8 @@ def comment_generate(prompt, history,post_check,full_conv, agent_name=agents[0],
111
  print("###############\nRUNNING QUESTION GENERATOR\n###############\n")
112
  seed = random.randint(1,1111111111111111)
113
  #agent=prompts.COMMENTER.format(focus=main_point[0])
114
- bp,_,_=history[0]
 
115
  agent=prompts.COMMENTER.format(focus=bp)
116
  system_prompt=agent
117
  temperature = float(temperature)
@@ -562,6 +563,7 @@ def generate_OG(prompt, history, agent_name=agents[0], sys_prompt="", temperatur
562
 
563
 
564
  with gr.Blocks() as app:
 
565
  chat_handler=gr.State()
566
  post_handler=gr.State()
567
  html = gr.HTML()
 
111
  print("###############\nRUNNING QUESTION GENERATOR\n###############\n")
112
  seed = random.randint(1,1111111111111111)
113
  #agent=prompts.COMMENTER.format(focus=main_point[0])
114
+ #bp,_,_=full_conv[0]
115
+ bp=full_conv[0][0]
116
  agent=prompts.COMMENTER.format(focus=bp)
117
  system_prompt=agent
118
  temperature = float(temperature)
 
563
 
564
 
565
  with gr.Blocks() as app:
566
+
567
  chat_handler=gr.State()
568
  post_handler=gr.State()
569
  html = gr.HTML()