Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ def pipe(file):
|
|
| 25 |
device=device,
|
| 26 |
token=auth_token,
|
| 27 |
)
|
| 28 |
-
asr.model.config.forced_decoder_ids =
|
| 29 |
|
| 30 |
def transcribe(file):
|
| 31 |
text = pipe(file)["text"]
|
|
|
|
| 25 |
device=device,
|
| 26 |
token=auth_token,
|
| 27 |
)
|
| 28 |
+
asr.model.config.forced_decoder_ids = asr.tokenizer.get_decoder_prompt_ids(language=lang, task="transcribe")
|
| 29 |
|
| 30 |
def transcribe(file):
|
| 31 |
text = pipe(file)["text"]
|