Spaces:
Runtime error
Runtime error
Commit ·
1e61fa7
1
Parent(s): 8dbb96b
ist das ein dreck
Browse files
app.py
CHANGED
|
@@ -6,13 +6,13 @@ pipe_raw = pipeline(model="openai/whisper-small", device_map="auto")
|
|
| 6 |
|
| 7 |
# force swedish
|
| 8 |
pipe_fine.model.config.forced_decoder_ids = (
|
| 9 |
-
|
| 10 |
language="se", task="transcribe"
|
| 11 |
)
|
| 12 |
)
|
| 13 |
|
| 14 |
pipe_raw.model.config.forced_decoder_ids = (
|
| 15 |
-
|
| 16 |
language="se", task="transcribe"
|
| 17 |
)
|
| 18 |
)
|
|
|
|
| 6 |
|
| 7 |
# force swedish
|
| 8 |
pipe_fine.model.config.forced_decoder_ids = (
|
| 9 |
+
pipe_fine.tokenizer.get_decoder_prompt_ids(
|
| 10 |
language="se", task="transcribe"
|
| 11 |
)
|
| 12 |
)
|
| 13 |
|
| 14 |
pipe_raw.model.config.forced_decoder_ids = (
|
| 15 |
+
pipe_raw.tokenizer.get_decoder_prompt_ids(
|
| 16 |
language="se", task="transcribe"
|
| 17 |
)
|
| 18 |
)
|