Spaces:
Running
Running
Update transcribe.py
Browse files- transcribe.py +1 -1
transcribe.py
CHANGED
@@ -3,7 +3,7 @@ import math
|
|
3 |
|
4 |
|
5 |
def word_level_transcribe(audio, max_segment_duration=2.0): # Set your desired max duration here
|
6 |
-
model = WhisperModel("tiny", device="cpu"
|
7 |
segments, info = model.transcribe(audio, vad_filter=True, vad_parameters=dict(min_silence_duration_ms=1500), word_timestamps=True, log_progress=True)
|
8 |
segments = list(segments) # The transcription will actually run here.
|
9 |
wordlevel_info = []
|
|
|
3 |
|
4 |
|
5 |
def word_level_transcribe(audio, max_segment_duration=2.0): # Set your desired max duration here
|
6 |
+
model = WhisperModel("tiny", device="cpu")
|
7 |
segments, info = model.transcribe(audio, vad_filter=True, vad_parameters=dict(min_silence_duration_ms=1500), word_timestamps=True, log_progress=True)
|
8 |
segments = list(segments) # The transcription will actually run here.
|
9 |
wordlevel_info = []
|