Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,6 +17,8 @@ model_name = "pgilles/whisper-large-v2-lb_cased_04"
|
|
17 |
|
18 |
pipe = pipeline("automatic-speech-recognition", model=model_name, device=0, use_auth_token=token_key)
|
19 |
#pipe.model.config.forced_decoder_ids = pipe.tokenizer.get_decoder_prompt_ids(language= "Luxembourgish", task="transcribe")
|
|
|
|
|
20 |
|
21 |
def load_data(input_file):
|
22 |
|
|
|
17 |
|
18 |
pipe = pipeline("automatic-speech-recognition", model=model_name, device=0, use_auth_token=token_key)
|
19 |
#pipe.model.config.forced_decoder_ids = pipe.tokenizer.get_decoder_prompt_ids(language= "Luxembourgish", task="transcribe")
|
20 |
+
pipe.model.config.forced_decoder_ids = None
|
21 |
+
|
22 |
|
23 |
def load_data(input_file):
|
24 |
|