Update app.py
Browse files
app.py
CHANGED
@@ -173,8 +173,8 @@ with gr.Blocks() as demo:
|
|
173 |
pdf_button = gr.Button("Ask")
|
174 |
|
175 |
with gr.Tab("Voice Chat"):
|
176 |
-
# Record Audio Component for Voice Chat
|
177 |
-
audio_record = gr.Audio(label="Record your Voice", type="bytes",
|
178 |
# Upload Audio File Component
|
179 |
audio_upload = gr.File(label="Or Upload an Audio File", type="file", file_types=["audio/wav", "audio/mp3"])
|
180 |
audio_query = gr.Textbox(label="Ask about the transcription")
|
|
|
173 |
pdf_button = gr.Button("Ask")
|
174 |
|
175 |
with gr.Tab("Voice Chat"):
|
176 |
+
# Record Audio Component for Voice Chat (No 'source' argument needed)
|
177 |
+
audio_record = gr.Audio(label="Record your Voice", type="bytes", show_label=True)
|
178 |
# Upload Audio File Component
|
179 |
audio_upload = gr.File(label="Or Upload an Audio File", type="file", file_types=["audio/wav", "audio/mp3"])
|
180 |
audio_query = gr.Textbox(label="Ask about the transcription")
|