Spaces:
Sleeping
Sleeping
Mustafa Can commited on
Commit ·
d2cb8ba
1
Parent(s): 4597406
Fix: use `sources` arg for gr.Audio to match Gradio API
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ def transcribe(audio_path):
|
|
| 16 |
|
| 17 |
iface = gr.Interface(
|
| 18 |
fn=transcribe,
|
| 19 |
-
inputs=gr.Audio(
|
| 20 |
outputs=gr.Textbox(label="Transcription"),
|
| 21 |
title="Fast Local Transcription",
|
| 22 |
description=("faster-whisper backend; pick model_size=" + MODEL_SIZE +
|
|
|
|
| 16 |
|
| 17 |
iface = gr.Interface(
|
| 18 |
fn=transcribe,
|
| 19 |
+
inputs=gr.Audio(sources="upload", type="filepath", label="Upload audio file"),
|
| 20 |
outputs=gr.Textbox(label="Transcription"),
|
| 21 |
title="Fast Local Transcription",
|
| 22 |
description=("faster-whisper backend; pick model_size=" + MODEL_SIZE +
|