Spaces:
Running
on
Zero
Running
on
Zero
Update whisper_cs.py
#38
by
ssolito
- opened
- whisper_cs.py +2 -1
whisper_cs.py
CHANGED
@@ -207,8 +207,9 @@ def generate(audio_path, use_v2_fast):
|
|
207 |
clean_output = ""
|
208 |
for start, end, speaker, text in merged_transcript:
|
209 |
clean_output += f"[{speaker}]: {text}\n"
|
|
|
210 |
clean_output = post_merge_consecutive_segments_from_text(clean_output)
|
211 |
-
|
212 |
|
213 |
else:
|
214 |
model = load_whisper_model(MODEL_PATH_V2)
|
|
|
207 |
clean_output = ""
|
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)
|