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