asahi417 commited on
Commit
9d62abd
1 Parent(s): 0e3ac37
Files changed (1) hide show
  1. pipeline/test_pipeline.py +3 -4
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
- output = pipe("sample_diarization_japanese.mp3")
7
- pprint(output)
 
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