Spaces:
Sleeping
Sleeping
jonnatakusuma
commited on
Commit
·
2bfccf0
1
Parent(s):
b872bd7
token
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ st.text("Model Whisper (TemplarX-medium-Indonesian) telah dimuat:")
|
|
43 |
def load_whisper_model():
|
44 |
model_name = "jonnatakusuma/TemplarX-medium-Indonesian"
|
45 |
tokenizer = Wav2Vec2Tokenizer.from_pretrained(model_name)
|
46 |
-
model = Wav2Vec2ForCTC.from_pretrained(model_name,
|
47 |
return tokenizer, model
|
48 |
|
49 |
audio_file = st.file_uploader("Unggah Meeting Audio", type=["mp3", "wav", "m4a"])
|
|
|
43 |
def load_whisper_model():
|
44 |
model_name = "jonnatakusuma/TemplarX-medium-Indonesian"
|
45 |
tokenizer = Wav2Vec2Tokenizer.from_pretrained(model_name)
|
46 |
+
model = Wav2Vec2ForCTC.from_pretrained(model_name, use_auth_token=True)
|
47 |
return tokenizer, model
|
48 |
|
49 |
audio_file = st.file_uploader("Unggah Meeting Audio", type=["mp3", "wav", "m4a"])
|