leophill commited on
Commit
cc1910c
1 Parent(s): 8d491d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ tokenizer = processor.tokenizer
20
  model = WhisperForConditionalGeneration.from_pretrained(model_name, use_auth_token=token_key)
21
  #p = pipeline("automatic-speech-recognition", model=model, tokenizer=tokenizer, feature_extractor=processor.feature_extractor, decoder=processor.decoder, use_auth_token=token_key)
22
 
23
- pipe = pipeline("automatic-speech-recognition", model=model, tokenizer=processor.tokenizer, feature_extractor=processor.feature_extractor, decoder=processor.decoder, device=0)
24
  #pipe = pipeline("automatic-speech-recognition", model=model_name, device=0, use_auth_token=token_key)
25
  #pipe.model.config.forced_decoder_ids = pipe.tokenizer.get_decoder_prompt_ids(language= "Luxembourgish", task="transcribe")
26
  #pipe.model.config.forced_decoder_ids = None
 
20
  model = WhisperForConditionalGeneration.from_pretrained(model_name, use_auth_token=token_key)
21
  #p = pipeline("automatic-speech-recognition", model=model, tokenizer=tokenizer, feature_extractor=processor.feature_extractor, decoder=processor.decoder, use_auth_token=token_key)
22
 
23
+ pipe = pipeline("automatic-speech-recognition", model=model, tokenizer=processor.tokenizer, feature_extractor=processor.feature_extractor, device=0)
24
  #pipe = pipeline("automatic-speech-recognition", model=model_name, device=0, use_auth_token=token_key)
25
  #pipe.model.config.forced_decoder_ids = pipe.tokenizer.get_decoder_prompt_ids(language= "Luxembourgish", task="transcribe")
26
  #pipe.model.config.forced_decoder_ids = None