Spaces:
Sleeping
Sleeping
Add default value for model selection
Browse files
app.py
CHANGED
@@ -30,7 +30,14 @@ model_ids_list = [
|
|
30 |
|
31 |
gradio_app = gr.Interface(
|
32 |
fn=transcribe,
|
33 |
-
inputs=[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
outputs="text",
|
35 |
title="Finnish Automatic Speech Recognition",
|
36 |
description ="Choose a model from the list. Select the Base model for the fastest inference and the XLarge one for the most accurate results."
|
|
|
30 |
|
31 |
gradio_app = gr.Interface(
|
32 |
fn=transcribe,
|
33 |
+
inputs=[
|
34 |
+
gr.Audio(sources=["upload","microphone"]),
|
35 |
+
gr.Dropdown(
|
36 |
+
label="Model",
|
37 |
+
value="GetmanY1/wav2vec2-large-fi-150k-finetuned",
|
38 |
+
choices=model_ids_list
|
39 |
+
)
|
40 |
+
],
|
41 |
outputs="text",
|
42 |
title="Finnish Automatic Speech Recognition",
|
43 |
description ="Choose a model from the list. Select the Base model for the fastest inference and the XLarge one for the most accurate results."
|