233-Yorozuya commited on
Commit
5b90a2c
·
verified ·
1 Parent(s): 9b9c28e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -5,8 +5,9 @@ import torchaudio
5
  # Load the model
6
  @st.cache_resource
7
  def load_model():
8
- processor = WhisperProcessor.from_pretrained("233-Yorozuya/dl_whisper_model")
9
- model = WhisperForConditionalGeneration.from_pretrained("233-Yorozuya/dl_whisper_model")
 
10
  return processor, model
11
 
12
  processor, model = load_model()
 
5
  # Load the model
6
  @st.cache_resource
7
  def load_model():
8
+ processor = WhisperProcessor.from_pretrained("233-Yorozuya/dl_whisper_model", use_auth_token=True)
9
+ model = WhisperForConditionalGeneration.from_pretrained("233-Yorozuya/dl_whisper_model", use_auth_token=True)
10
+
11
  return processor, model
12
 
13
  processor, model = load_model()