Spaces:
Sleeping
Sleeping
Alfie Grace
commited on
Commit
·
7b52345
1
Parent(s):
23e8356
Changed button customisation
Browse files
app.py
CHANGED
@@ -620,7 +620,7 @@ with gr.Blocks(css="css/custom_css.css") as block:
|
|
620 |
placeholder="What's the answer to life, the universe, and everything?",
|
621 |
lines=1,
|
622 |
elem_id="gr-component")
|
623 |
-
submit = gr.Button(value="Send", variant="secondary"
|
624 |
|
625 |
with gr.Tab("Settings"):
|
626 |
tools_cb_group = gr.CheckboxGroup(label="Tools:", choices=TOOLS_LIST,
|
@@ -646,7 +646,7 @@ with gr.Blocks(css="css/custom_css.css") as block:
|
|
646 |
# monologue_cb.change(update_foo, inputs=[monologue_cb, monologue_state],
|
647 |
# outputs=[monologue_state])
|
648 |
|
649 |
-
reset_btn = gr.Button(value="Reset chat", variant="secondary").style(full_width=False
|
650 |
reset_btn.click(reset_memory, inputs=[history_state, memory_state], outputs=[chatbot, history_state, memory_state])
|
651 |
|
652 |
message.submit(chat, inputs=[openai_api_key_textbox, message, history_state, chain_state, trace_chain_state,
|
|
|
620 |
placeholder="What's the answer to life, the universe, and everything?",
|
621 |
lines=1,
|
622 |
elem_id="gr-component")
|
623 |
+
submit = gr.Button(value="Send", variant="secondary").style(full_width=False)
|
624 |
|
625 |
with gr.Tab("Settings"):
|
626 |
tools_cb_group = gr.CheckboxGroup(label="Tools:", choices=TOOLS_LIST,
|
|
|
646 |
# monologue_cb.change(update_foo, inputs=[monologue_cb, monologue_state],
|
647 |
# outputs=[monologue_state])
|
648 |
|
649 |
+
reset_btn = gr.Button(value="Reset chat", variant="secondary").style(full_width=False)
|
650 |
reset_btn.click(reset_memory, inputs=[history_state, memory_state], outputs=[chatbot, history_state, memory_state])
|
651 |
|
652 |
message.submit(chat, inputs=[openai_api_key_textbox, message, history_state, chain_state, trace_chain_state,
|