Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -31,9 +31,9 @@ language = "arabic"
|
|
31 |
task = "transcribe"
|
32 |
|
33 |
|
34 |
-
model = WhisperForConditionalGeneration.from_pretrained(MODEL_NAME,
|
35 |
-
tokenizer = WhisperTokenizer.from_pretrained(MODEL_NAME, language=language, task=task,
|
36 |
-
processor = WhisperProcessor.from_pretrained(MODEL_NAME, language=language, task=task,
|
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 |
|