Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -72,6 +72,8 @@ asr = pipeline(
|
|
72 |
tokenizer=processor.tokenizer,
|
73 |
feature_extractor=processor.feature_extractor,
|
74 |
device=device,
|
|
|
|
|
75 |
)
|
76 |
speaker_segmentation = Pipeline.from_pretrained("pyannote/speaker-segmentation", use_auth_token='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')
|
77 |
rpunct = RestorePuncts()
|
|
|
72 |
tokenizer=processor.tokenizer,
|
73 |
feature_extractor=processor.feature_extractor,
|
74 |
device=device,
|
75 |
+
chunk_length_s=6, # 12
|
76 |
+
stride_length_s=(2, 3), # must have with chunk_length_s
|
77 |
)
|
78 |
speaker_segmentation = Pipeline.from_pretrained("pyannote/speaker-segmentation", use_auth_token='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')
|
79 |
rpunct = RestorePuncts()
|