Add monologue mode (no conversational agent)
Browse files
app.py
CHANGED
|
@@ -443,8 +443,9 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray}") as block:
|
|
| 443 |
with gr.Tab("Chat"):
|
| 444 |
with gr.Row():
|
| 445 |
with gr.Column():
|
| 446 |
-
gr.
|
| 447 |
-
"<
|
|
|
|
| 448 |
|
| 449 |
openai_api_key_textbox = gr.Textbox(placeholder="Paste your OpenAI API key (sk-...)",
|
| 450 |
show_label=False, lines=1, type='password')
|
|
@@ -505,7 +506,7 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray}") as block:
|
|
| 505 |
speak_text_cb.change(update_foo, inputs=[speak_text_cb, speak_text_state],
|
| 506 |
outputs=[speak_text_state])
|
| 507 |
|
| 508 |
-
monologue_cb = gr.Checkbox(label="
|
| 509 |
monologue_cb.change(update_foo, inputs=[monologue_cb, monologue_state],
|
| 510 |
outputs=[monologue_state])
|
| 511 |
|
|
|
|
| 443 |
with gr.Tab("Chat"):
|
| 444 |
with gr.Row():
|
| 445 |
with gr.Column():
|
| 446 |
+
gr.HTML(
|
| 447 |
+
"""<b><center>GPT + WolframAlpha</center></b>
|
| 448 |
+
<p><center>New feature in Settings: Babel fish mode</center></p>""")
|
| 449 |
|
| 450 |
openai_api_key_textbox = gr.Textbox(placeholder="Paste your OpenAI API key (sk-...)",
|
| 451 |
show_label=False, lines=1, type='password')
|
|
|
|
| 506 |
speak_text_cb.change(update_foo, inputs=[speak_text_cb, speak_text_state],
|
| 507 |
outputs=[speak_text_state])
|
| 508 |
|
| 509 |
+
monologue_cb = gr.Checkbox(label="Babel fish mode (translate/restate what you enter, no conversational agent)", value=False)
|
| 510 |
monologue_cb.change(update_foo, inputs=[monologue_cb, monologue_state],
|
| 511 |
outputs=[monologue_state])
|
| 512 |
|