AbirMessaoudi ssolito commited on
Commit
297d08e
·
verified ·
1 Parent(s): f6b1fad

Update whisper.py (#9)

Browse files

- Update whisper.py (e14e7976daf042a7b9fc332904bef2dda4423cc0)


Co-authored-by: Sarah Solito <ssolito@users.noreply.huggingface.co>

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