Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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])
|