SPACERUNNER99 commited on
Commit
19eddee
·
verified ·
1 Parent(s): de207be

Update transcribe.py

Browse files
Files changed (1) hide show
  1. 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", local_files_only=True)
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 = []