tonyassi commited on
Commit
c77f7bc
β€’
1 Parent(s): 347db6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -94,6 +94,10 @@ with gr.Blocks() as demo:
94
  with gr.Row():
95
  system_prompt_textbox1 = gr.Textbox(label='Ally System Prompt', value=ally_system_prompt)
96
  system_prompt_textbox2 = gr.Textbox(label='Gatekeeper System Prompt', value=gatekeeper_system_prompt)
 
 
 
 
97
 
98
  # Input textbox event handlers
99
  textbox1.submit(respond, [textbox1, chatbot1, system_prompt_textbox1], [textbox1, chatbot1])
 
94
  with gr.Row():
95
  system_prompt_textbox1 = gr.Textbox(label='Ally System Prompt', value=ally_system_prompt)
96
  system_prompt_textbox2 = gr.Textbox(label='Gatekeeper System Prompt', value=gatekeeper_system_prompt)
97
+
98
+ with gr.Row():
99
+ copy_ally_text_button = gr.Button(value="Send ally's response to the gatekeeper")
100
+ copy_gatekeeper_text_button = gr.Button(value="Send gatekeeper's response to the ally")
101
 
102
  # Input textbox event handlers
103
  textbox1.submit(respond, [textbox1, chatbot1, system_prompt_textbox1], [textbox1, chatbot1])