Copy Boss commited on
Commit
df575df
1 Parent(s): 402ee04
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -6,7 +6,9 @@ import soundfile as sf
6
  from io import BytesIO
7
 
8
  # Create a dropdown to select the model
9
- model_name = st.selectbox("Select a model", ["base", "small", "medium", "large", "large-v2"])
 
 
10
 
11
  # Load the selected model
12
  model = stable_whisper.load_model(model_name)
 
6
  from io import BytesIO
7
 
8
  # Create a dropdown to select the model
9
+ model_options = ["base", "small", "medium", "large", "large-v2"]
10
+ default_model = "large"
11
+ model_name = st.selectbox("Select a model", options=model_options, index=model_options.index(default_model))
12
 
13
  # Load the selected model
14
  model = stable_whisper.load_model(model_name)