Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ pipe = pipeline(
|
|
16 |
device=device,
|
17 |
)
|
18 |
|
19 |
-
pipe.model.config.forced_decoder_ids = pipe.tokenizer.get_decoder_prompt_ids(language=lang, task="
|
20 |
|
21 |
def transcribe(microphone, file_upload):
|
22 |
warn_output = ""
|
|
|
16 |
device=device,
|
17 |
)
|
18 |
|
19 |
+
pipe.model.config.forced_decoder_ids = pipe.tokenizer.get_decoder_prompt_ids(language=lang, task="translate")
|
20 |
|
21 |
def transcribe(microphone, file_upload):
|
22 |
warn_output = ""
|