enoreyes commited on
Commit
938439d
1 Parent(s): 7144ccc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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()