Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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"
|
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")
|
|
|
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")
|