Spaces:
Sleeping
Sleeping
set language to force polish
Browse files
main.py
CHANGED
@@ -39,7 +39,7 @@ def process_audio(url: str):
|
|
39 |
device=device
|
40 |
)
|
41 |
dataset = load_dataset("distil-whisper/librispeech_long", "clean", split="validation")
|
42 |
-
whisper_result = pipe("/data/audio.mp3")
|
43 |
return whisper_result
|
44 |
|
45 |
|
|
|
39 |
device=device
|
40 |
)
|
41 |
dataset = load_dataset("distil-whisper/librispeech_long", "clean", split="validation")
|
42 |
+
whisper_result = pipe("/data/audio.mp3", enerate_kwargs={"language": "polish")
|
43 |
return whisper_result
|
44 |
|
45 |
|