init
Browse files
pipeline/test_pipeline.py
CHANGED
@@ -3,8 +3,7 @@ from pprint import pprint
|
|
3 |
from transformers.pipelines import pipeline
|
4 |
|
5 |
pipe = pipeline(model="kotoba-tech/kotoba-whisper-v2.2", chunk_length_s=None, batch_size=16, trust_remote_code=True)
|
6 |
-
|
7 |
-
pprint(
|
|
|
8 |
|
9 |
-
output = pipe("sample_diarization_japanese.mp3", add_punctu)
|
10 |
-
pprint(output)
|
|
|
3 |
from transformers.pipelines import pipeline
|
4 |
|
5 |
pipe = pipeline(model="kotoba-tech/kotoba-whisper-v2.2", chunk_length_s=None, batch_size=16, trust_remote_code=True)
|
6 |
+
pprint(pipe("sample_diarization_japanese.mp3"))
|
7 |
+
pprint(pipe("sample_diarization_japanese.mp3", add_punctuation=True))
|
8 |
+
pprint(pipe("sample_diarization_japanese.mp3", add_silence_end=0.5, add_silence_start=0.5))
|
9 |
|
|
|
|