AlexMia commited on
Commit
fd1f512
1 Parent(s): a248b45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -70,9 +70,9 @@ def bot(chat_msg, history=None, audio_tts_checkbox=False):
70
  return "", messages, ""
71
 
72
  with gr.Blocks(css_paths="_custom.css") as demo:
73
- chatbot = gr.Chatbot(type="messages", api_name="chat_bot")
74
- chat_input = gr.Textbox(placeholder="Sende eine Nachricht...", lines=1, max_lines=6, show_label=False, elem_id="chat_input", api_name="input")
75
- audio_tts_checkbox = gr.Checkbox(label="Audio Antwort generieren?", value=False, elem_classes="toggle-btn", api_name="tts")
76
  submit_btn = gr.Button("Senden", api_name="llmmessagesubmit")
77
  submit_btn.click(bot, [chat_input, chatbot, audio_tts_checkbox], [chat_input, chatbot, audio_tts_checkbox], api_name="llm_submit")
78
  chat_input.submit(bot, [chat_input, chatbot, audio_tts_checkbox], [chat_input, chatbot, audio_tts_checkbox], api_name="llm")
 
70
  return "", messages, ""
71
 
72
  with gr.Blocks(css_paths="_custom.css") as demo:
73
+ chatbot = gr.Chatbot(type="messages")
74
+ chat_input = gr.Textbox(placeholder="Sende eine Nachricht...", lines=1, max_lines=6, show_label=False, elem_id="chat_input")
75
+ audio_tts_checkbox = gr.Checkbox(label="Audio Antwort generieren?", value=False, elem_classes="toggle-btn")
76
  submit_btn = gr.Button("Senden", api_name="llmmessagesubmit")
77
  submit_btn.click(bot, [chat_input, chatbot, audio_tts_checkbox], [chat_input, chatbot, audio_tts_checkbox], api_name="llm_submit")
78
  chat_input.submit(bot, [chat_input, chatbot, audio_tts_checkbox], [chat_input, chatbot, audio_tts_checkbox], api_name="llm")