JLW commited on
Commit
51c5f7e
·
1 Parent(s): e728daa

Add monologue mode (no conversational agent)

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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.Markdown(
447
- "<h4><center>GPT + WolframAlpha + Whisper</center></h4>")
 
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="Translate/restate what you enter (no conversational agent)", value=False)
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