Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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()
|