patrickvonplaten commited on
Commit
23eacd8
1 Parent(s): 55633f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -4,9 +4,9 @@ from transformers import AutoFeatureExtractor, AutoTokenizer, SpeechEncoderDecod
4
 
5
  model_name = "facebook/wav2vec2-xls-r-2b-en-to-15"
6
 
7
- feature_extractor = AutoFeatureExtractor.from_pretrained(model_name, use_auth_token="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")
8
- tokenizer = AutoTokenizer.from_pretrained(model_name, use_auth_token="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", use_fast=False)
9
- model = SpeechEncoderDecoderModel.from_pretrained(model_name, use_auth_token="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")
10
 
11
  def process_audio_file(file):
12
  data, sr = librosa.load(file)
 
4
 
5
  model_name = "facebook/wav2vec2-xls-r-2b-en-to-15"
6
 
7
+ feature_extractor = AutoFeatureExtractor.from_pretrained(model_name)
8
+ tokenizer = AutoTokenizer.from_pretrained(model_name, use_fast=False)
9
+ model = SpeechEncoderDecoderModel.from_pretrained(model_name)
10
 
11
  def process_audio_file(file):
12
  data, sr = librosa.load(file)