Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ iface = gr.Interface(
|
|
16 |
fn=transcribe_audio, # The function that will process the audio and model choice
|
17 |
inputs=[
|
18 |
gr.Dropdown(label="Choose Whisper Model", choices=["tiny", "base", "small", "medium", "large"], value="base"), # Model selection
|
19 |
-
gr.Audio(
|
20 |
],
|
21 |
outputs="text", # Output transcription as text
|
22 |
title="Whisper Audio Transcription",
|
|
|
16 |
fn=transcribe_audio, # The function that will process the audio and model choice
|
17 |
inputs=[
|
18 |
gr.Dropdown(label="Choose Whisper Model", choices=["tiny", "base", "small", "medium", "large"], value="base"), # Model selection
|
19 |
+
gr.Audio(type="filepath") # Audio upload input (removed 'source')
|
20 |
],
|
21 |
outputs="text", # Output transcription as text
|
22 |
title="Whisper Audio Transcription",
|