WWMachine commited on
Commit
f056893
·
verified ·
1 Parent(s): fa063fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -165,10 +165,10 @@ with gr.Blocks() as demo:
165
  # Hidden but expandable textbox
166
  with gr.Accordion("Optional: Type Instead of Speaking", open=False):
167
  typed_message = gr.Textbox(label="Manual Text Input")
168
-
169
- chatbot = gr.Chatbot()
170
-
171
- audio_in = gr.Audio(source="microphone", type="filepath", label="Press to Speak")
172
  audio_out = gr.Audio(label="TTS Output")
173
 
174
  system_message = gr.Textbox(
 
165
  # Hidden but expandable textbox
166
  with gr.Accordion("Optional: Type Instead of Speaking", open=False):
167
  typed_message = gr.Textbox(label="Manual Text Input")
168
+
169
+ chatbot = gr.Chatbot(type="messages")
170
+
171
+ audio_in = gr.Audio(label="Press to Speak", type="filepath")
172
  audio_out = gr.Audio(label="TTS Output")
173
 
174
  system_message = gr.Textbox(