Spaces:
Running
on
Zero
Running
on
Zero
Update whisper.py
#9
by
ssolito
- opened
- 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 |
-
|
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
|