Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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,
|
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
|