Update app.py
Browse files
app.py
CHANGED
@@ -261,8 +261,8 @@ with gr.Blocks() as demo:
|
|
261 |
upload_audio_button = gr.Button("Ask", elem_id="ask_button")
|
262 |
|
263 |
with gr.Tab("Record Audio"):
|
264 |
-
# Record audio section
|
265 |
-
audio_recorder = gr.Audio(
|
266 |
record_transcribe_button = gr.Button("Transcribe Recording", elem_id="transcribe_button")
|
267 |
record_transcription = gr.Textbox(label="Transcription", interactive=False)
|
268 |
record_audio_query = gr.Textbox(label="Ask about the transcription (optional)")
|
|
|
261 |
upload_audio_button = gr.Button("Ask", elem_id="ask_button")
|
262 |
|
263 |
with gr.Tab("Record Audio"):
|
264 |
+
# Record audio section - Fixed to use compatible parameters
|
265 |
+
audio_recorder = gr.Audio(label="Record your voice", type="filepath")
|
266 |
record_transcribe_button = gr.Button("Transcribe Recording", elem_id="transcribe_button")
|
267 |
record_transcription = gr.Textbox(label="Transcription", interactive=False)
|
268 |
record_audio_query = gr.Textbox(label="Ask about the transcription (optional)")
|