Files changed (1) hide show
  1. whisper.py +1 -1
whisper.py CHANGED
@@ -141,7 +141,7 @@ def generate(audio_path, use_v2):
141
  temp_mono_path = "temp_mono.wav"
142
  audio.export(temp_mono_path, format="wav")
143
  audio_path = temp_mono_path
144
- task = "transcribe"
145
  output = transcribe_pipeline(format_audio(audio_path), task)
146
 
147
  clean_output = post_process_transcription(output, max_repeats=1) #check
 
141
  temp_mono_path = "temp_mono.wav"
142
  audio.export(temp_mono_path, format="wav")
143
  audio_path = temp_mono_path
144
+ task = "transcribe"
145
  output = transcribe_pipeline(format_audio(audio_path), task)
146
 
147
  clean_output = post_process_transcription(output, max_repeats=1) #check