Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1451,11 +1451,6 @@ with gr.Blocks(theme='Pijush2023/scikit-learn-pijush') as demo:
|
|
1451 |
transcribe_button = gr.Button("Transcribe")
|
1452 |
transcribe_button.click(fn=transcribe_and_update_textbox, inputs=[audio_input], outputs=[chat_input], api_name="voice_to_text")
|
1453 |
|
1454 |
-
# New ASR Component with Whisper
|
1455 |
-
gr.Markdown("<h2>Whisper ASR</h2>")
|
1456 |
-
audio_input_whisper = gr.Audio(sources=["microphone"], type='numpy')
|
1457 |
-
transcribe_button_whisper = gr.Button("Transcribe with Whisper")
|
1458 |
-
transcribe_button_whisper.click(fn=transcribe_function_whisper, inputs=[audio_input_whisper], outputs=[chat_input], api_name="whisper_asr")
|
1459 |
|
1460 |
# Streaming ASR component
|
1461 |
gr.Markdown("<h2>Streaming ASR</h2>")
|
|
|
1451 |
transcribe_button = gr.Button("Transcribe")
|
1452 |
transcribe_button.click(fn=transcribe_and_update_textbox, inputs=[audio_input], outputs=[chat_input], api_name="voice_to_text")
|
1453 |
|
|
|
|
|
|
|
|
|
|
|
1454 |
|
1455 |
# Streaming ASR component
|
1456 |
gr.Markdown("<h2>Streaming ASR</h2>")
|