Move "Show chain" checkbox to Tools tab
Browse files
app.py
CHANGED
|
@@ -362,10 +362,6 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray}") as block:
|
|
| 362 |
htm_video = f'<video width="256" height="256" autoplay muted loop><source src={tmp_file_url} type="video/mp4" poster="Masahiro.png"></video>'
|
| 363 |
video_html = gr.HTML(htm_video)
|
| 364 |
|
| 365 |
-
trace_chain_cb = gr.Checkbox(label="Show chain", value=False)
|
| 366 |
-
trace_chain_cb.change(update_foo, inputs=[trace_chain_cb, trace_chain_state],
|
| 367 |
-
outputs=[trace_chain_state])
|
| 368 |
-
|
| 369 |
with gr.Column(scale=3):
|
| 370 |
chatbot = gr.Chatbot()
|
| 371 |
|
|
@@ -399,6 +395,10 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray}") as block:
|
|
| 399 |
inputs=[tools_cb_group, tools_list_state, llm_state],
|
| 400 |
outputs=[tools_list_state, llm_state, chain_state, express_chain_state])
|
| 401 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 402 |
with gr.Tab("Formality"):
|
| 403 |
formality_radio = gr.Radio(label="Formality:",
|
| 404 |
choices=[FORMALITY_DEFAULT, "Casual", "Polite", "Honorific"],
|
|
|
|
| 362 |
htm_video = f'<video width="256" height="256" autoplay muted loop><source src={tmp_file_url} type="video/mp4" poster="Masahiro.png"></video>'
|
| 363 |
video_html = gr.HTML(htm_video)
|
| 364 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 365 |
with gr.Column(scale=3):
|
| 366 |
chatbot = gr.Chatbot()
|
| 367 |
|
|
|
|
| 395 |
inputs=[tools_cb_group, tools_list_state, llm_state],
|
| 396 |
outputs=[tools_list_state, llm_state, chain_state, express_chain_state])
|
| 397 |
|
| 398 |
+
trace_chain_cb = gr.Checkbox(label="Show reasoning chain in chat bubble", value=False)
|
| 399 |
+
trace_chain_cb.change(update_foo, inputs=[trace_chain_cb, trace_chain_state],
|
| 400 |
+
outputs=[trace_chain_state])
|
| 401 |
+
|
| 402 |
with gr.Tab("Formality"):
|
| 403 |
formality_radio = gr.Radio(label="Formality:",
|
| 404 |
choices=[FORMALITY_DEFAULT, "Casual", "Polite", "Honorific"],
|