Spaces:
Running
Running
Refactor transcribeAndExtract function calls to
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def transcribe(audio, model_version):
|
|
27 |
|
28 |
#%%
|
29 |
file_iface = gr.Interface(
|
30 |
-
fn =
|
31 |
inputs = [gr.Audio(source='upload', interactive=True),
|
32 |
gr.Checkbox(label='Transcribe only', default=False),
|
33 |
gr.Dropdown(choices=['large-v2', 'large-v3'], value='large-v3', label='Whisper model version')
|
@@ -40,7 +40,7 @@ file_iface = gr.Interface(
|
|
40 |
)
|
41 |
|
42 |
mic_iface = gr.Interface(
|
43 |
-
fn =
|
44 |
inputs = [gr.Audio(source='microphone', type='filepath'),
|
45 |
gr.Checkbox(label='Transcribe only', default=False),
|
46 |
gr.Dropdown(choices=['large-v2', 'large-v3'], value='large-v3', label='Whisper model version')
|
|
|
27 |
|
28 |
#%%
|
29 |
file_iface = gr.Interface(
|
30 |
+
fn = transcribe,
|
31 |
inputs = [gr.Audio(source='upload', interactive=True),
|
32 |
gr.Checkbox(label='Transcribe only', default=False),
|
33 |
gr.Dropdown(choices=['large-v2', 'large-v3'], value='large-v3', label='Whisper model version')
|
|
|
40 |
)
|
41 |
|
42 |
mic_iface = gr.Interface(
|
43 |
+
fn = transcribe,
|
44 |
inputs = [gr.Audio(source='microphone', type='filepath'),
|
45 |
gr.Checkbox(label='Transcribe only', default=False),
|
46 |
gr.Dropdown(choices=['large-v2', 'large-v3'], value='large-v3', label='Whisper model version')
|