Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -126,14 +126,16 @@ textarea, input[type='text'] { background: #f0f0f0; border-radius: 8px; }
|
|
126 |
|
127 |
gr.Markdown("# π€ Neobot - Always Listening", elem_id="title")
|
128 |
|
129 |
-
chatbot = gr.Chatbot()
|
|
|
130 |
|
131 |
with gr.Row():
|
132 |
chat_input = gr.Textbox(placeholder="Type here or use mic...", scale=6, show_label=False)
|
133 |
send_btn = gr.Button("π", scale=1)
|
134 |
|
135 |
with gr.Row():
|
136 |
-
mic_audio = gr.Audio(
|
|
|
137 |
mic_audio.change(transcribe_audio, [mic_audio], [chat_input])
|
138 |
|
139 |
with gr.Row():
|
|
|
126 |
|
127 |
gr.Markdown("# π€ Neobot - Always Listening", elem_id="title")
|
128 |
|
129 |
+
chatbot = gr.Chatbot(type="messages")
|
130 |
+
|
131 |
|
132 |
with gr.Row():
|
133 |
chat_input = gr.Textbox(placeholder="Type here or use mic...", scale=6, show_label=False)
|
134 |
send_btn = gr.Button("π", scale=1)
|
135 |
|
136 |
with gr.Row():
|
137 |
+
mic_audio = gr.Audio(label="ποΈ Record Voice", format="wav", interactive=True)
|
138 |
+
|
139 |
mic_audio.change(transcribe_audio, [mic_audio], [chat_input])
|
140 |
|
141 |
with gr.Row():
|