Files changed (1) hide show
  1. whisper_cs.py +4 -2
whisper_cs.py CHANGED
@@ -208,8 +208,10 @@ def generate(audio_path, use_v2_fast):
208
  for start, end, speaker, text in merged_transcript:
209
  clean_output += f"[{speaker}]: {text}\n"
210
  print('clean_output',clean_output)
211
- clean_output = post_merge_consecutive_segments_from_text(clean_output)
212
- print('clean_output',clean_output)
 
 
213
 
214
  else:
215
  model = load_whisper_model(MODEL_PATH_V2)
 
208
  for start, end, speaker, text in merged_transcript:
209
  clean_output += f"[{speaker}]: {text}\n"
210
  print('clean_output',clean_output)
211
+
212
+ # FIX Seems that post_merge_consecutive_segments_from_text returns an empty string
213
+ #clean_output = post_merge_consecutive_segments_from_text(clean_output)
214
+ #print('clean_output',clean_output)
215
 
216
  else:
217
  model = load_whisper_model(MODEL_PATH_V2)