jonnatakusuma commited on
Commit
2bfccf0
·
1 Parent(s): b872bd7
Files changed (1) hide show
  1. app.py +1 -1
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, token=HF_TOKEN)
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"])