liuyang commited on
Commit
a4d86b2
·
1 Parent(s): 3a6e3af
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -734,7 +734,7 @@ class WhisperTranscriber:
734
  total_coverage += overlap
735
 
736
  coverage_ratio = total_coverage / (d_end - d_start)
737
- if coverage_ratio < 0.85: # Less than 80% covered
738
  # This diarization segment needs re-transcription
739
  has_overlap = True
740
  break
@@ -744,7 +744,7 @@ class WhisperTranscriber:
744
  "end": d_end,
745
  "speaker": dseg["speaker"],
746
  })
747
-
748
  return transcription_results, unmatched_diarization_segments
749
 
750
  def _assign_dominant_speaker_to_segment(self, seg, speaker_at_func, best_speaker_for_interval_func):
 
734
  total_coverage += overlap
735
 
736
  coverage_ratio = total_coverage / (d_end - d_start)
737
+ if coverage_ratio >= 0.85: # Less than 80% covered
738
  # This diarization segment needs re-transcription
739
  has_overlap = True
740
  break
 
744
  "end": d_end,
745
  "speaker": dseg["speaker"],
746
  })
747
+ print("unmatched_diarization_segments", unmatched_diarization_segments)
748
  return transcription_results, unmatched_diarization_segments
749
 
750
  def _assign_dominant_speaker_to_segment(self, seg, speaker_at_func, best_speaker_for_interval_func):