asahi417 commited on
Commit
5b85155
·
verified ·
1 Parent(s): bdaf5fc

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -5
README.md CHANGED
@@ -72,12 +72,15 @@ pipe = pipeline(
72
  chunk_length_s=15,
73
  batch_size=16,
74
  trust_remote_code=True,
75
- punctuator=False,
76
- return_unique_speaker=True
77
  )
78
 
79
  # run inference
80
- result = pipe("sample_diarization_japanese.mp3", generate_kwargs=generate_kwargs)
 
 
 
 
 
81
  print(result)
82
  >>>
83
  {'chunks': [{'speaker': ['SPEAKER_02'],
@@ -124,8 +127,8 @@ print(result)
124
 
125
  - To activate punctuator:
126
  ```diff
127
- - punctuator=True,
128
- + punctuator=False,
129
  ```
130
 
131
  - To include more than a single speaker:
 
72
  chunk_length_s=15,
73
  batch_size=16,
74
  trust_remote_code=True,
 
 
75
  )
76
 
77
  # run inference
78
+ result = pipe(
79
+ "sample_diarization_japanese.mp3",
80
+ add_punctuation=False,
81
+ return_unique_speaker=True,
82
+ generate_kwargs=generate_kwargs
83
+ )
84
  print(result)
85
  >>>
86
  {'chunks': [{'speaker': ['SPEAKER_02'],
 
127
 
128
  - To activate punctuator:
129
  ```diff
130
+ - add_punctuation=True,
131
+ + add_punctuation=False,
132
  ```
133
 
134
  - To include more than a single speaker: