liuyang commited on
Commit
78d61ea
·
1 Parent(s): 0b6cc7c

update threshold

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -736,7 +736,7 @@ class WhisperTranscriber:
736
  coverage_ratio = total_coverage / (d_end - d_start)
737
  is_well_covered = coverage_ratio >= 0.85 # 85% or more covered
738
 
739
- if not is_well_covered and (d_end - d_start) > 1.5: # If poorly covered, add to unmatched list
740
  unmatched_diarization_segments.append({
741
  "start": d_start,
742
  "end": d_end,
 
736
  coverage_ratio = total_coverage / (d_end - d_start)
737
  is_well_covered = coverage_ratio >= 0.85 # 85% or more covered
738
 
739
+ if not is_well_covered and (d_end - d_start)*(1-coverage_ratio) > 1.5: # If poorly covered, add to unmatched list
740
  unmatched_diarization_segments.append({
741
  "start": d_start,
742
  "end": d_end,