Ahmed007 commited on
Commit
dd93109
β€’
1 Parent(s): f239e6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -31,9 +31,9 @@ language = "arabic"
31
  task = "transcribe"
32
 
33
 
34
- model = WhisperForConditionalGeneration.from_pretrained(MODEL_NAME,use_auth_token=auth_token)
35
- tokenizer = WhisperTokenizer.from_pretrained(MODEL_NAME, language=language, task=task,use_auth_token=auth_token)
36
- processor = WhisperProcessor.from_pretrained(MODEL_NAME, language=language, task=task,use_auth_token=auth_token)
37
  feature_extractor = processor.feature_extractor
38
  forced_decoder_ids = processor.get_decoder_prompt_ids(language=language, task=task)
39
 
 
31
  task = "transcribe"
32
 
33
 
34
+ model = WhisperForConditionalGeneration.from_pretrained(MODEL_NAME,token=auth_token)
35
+ tokenizer = WhisperTokenizer.from_pretrained(MODEL_NAME, language=language, task=task,token=auth_token)
36
+ processor = WhisperProcessor.from_pretrained(MODEL_NAME, language=language, task=task,token=auth_token)
37
  feature_extractor = processor.feature_extractor
38
  forced_decoder_ids = processor.get_decoder_prompt_ids(language=language, task=task)
39