nickmuchi commited on
Commit
b30ce91
1 Parent(s): 6fdbfa7

Update functions.py

Browse files
Files changed (1) hide show
  1. functions.py +1 -1
functions.py CHANGED
@@ -42,7 +42,7 @@ def load_models():
42
 
43
  @st.experimental_singleton(suppress_st_warning=True)
44
  def load_asr_model(asr_model_name):
45
- asr_model = whisper.load_model(asr_model_name)
46
 
47
  return asr_model
48
 
 
42
 
43
  @st.experimental_singleton(suppress_st_warning=True)
44
  def load_asr_model(asr_model_name):
45
+ asr_model = whisper.load_model(asr_model_name, task='transcribe', language='en')
46
 
47
  return asr_model
48