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