GetmanY1 commited on
Commit
9476e08
·
1 Parent(s): bdb4270

Add default value for model selection

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -30,7 +30,14 @@ model_ids_list = [
30
 
31
  gradio_app = gr.Interface(
32
  fn=transcribe,
33
- inputs=[gr.Audio(sources=["upload","microphone"]), gr.Dropdown(model_ids_list)],
 
 
 
 
 
 
 
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."