Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -134,7 +134,7 @@ textarea, input[type='text'] { background: #f0f0f0; border-radius: 8px; }
|
|
134 |
send_btn = gr.Button("π", scale=1)
|
135 |
|
136 |
with gr.Row():
|
137 |
-
mic_audio = gr.Audio(
|
138 |
mic_audio.change(transcribe_audio, [mic_audio], [chat_input])
|
139 |
|
140 |
with gr.Row():
|
@@ -157,4 +157,4 @@ textarea, input[type='text'] { background: #f0f0f0; border-radius: 8px; }
|
|
157 |
save_btn.click(lambda: gr.update(choices=list_saved_files()), [], [dropdown])
|
158 |
load_btn.click(load_chat, [dropdown], [chatbot, state, status])
|
159 |
|
160 |
-
demo.launch()
|
|
|
134 |
send_btn = gr.Button("π", scale=1)
|
135 |
|
136 |
with gr.Row():
|
137 |
+
mic_audio = gr.Audio(type="filepath", label="ποΈ Record Voice", interactive=True)
|
138 |
mic_audio.change(transcribe_audio, [mic_audio], [chat_input])
|
139 |
|
140 |
with gr.Row():
|
|
|
157 |
save_btn.click(lambda: gr.update(choices=list_saved_files()), [], [dropdown])
|
158 |
load_btn.click(load_chat, [dropdown], [chatbot, state, status])
|
159 |
|
160 |
+
demo.launch()
|