Spaces:
Sleeping
Sleeping
Another take on aduio source fie
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def transcribe_audio(audio_file):
|
|
| 15 |
|
| 16 |
with gr.Blocks() as demo:
|
| 17 |
gr.Markdown("## Audio Transcription with Whisper")
|
| 18 |
-
audio_input = gr.Audio(type="
|
| 19 |
text_output = gr.Textbox(label="Transcription")
|
| 20 |
btn = gr.Button("Transcribe")
|
| 21 |
btn.click(transcribe_audio, inputs=audio_input, outputs=text_output)
|
|
|
|
| 15 |
|
| 16 |
with gr.Blocks() as demo:
|
| 17 |
gr.Markdown("## Audio Transcription with Whisper")
|
| 18 |
+
audio_input = gr.Audio(type="filepath", label="Upload Audio File")
|
| 19 |
text_output = gr.Textbox(label="Transcription")
|
| 20 |
btn = gr.Button("Transcribe")
|
| 21 |
btn.click(transcribe_audio, inputs=audio_input, outputs=text_output)
|