Spaces:
Running
on
Zero
Running
on
Zero
Update whisper_cs.py (#39)
Browse files- Update whisper_cs.py (bd48612b8a3ab0fd940d131f6a81d82586b2f223)
- 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 |
-
|
| 212 |
-
|
|
|
|
|
|
|
| 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)
|