Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def convert_to_wav(filepath):
|
|
62 |
os.system(f'ffmpeg -i "{filepath}" -ar 16000 -ac 1 -c:a pcm_s16le "{audio_file}"')
|
63 |
return audio_file
|
64 |
|
65 |
-
pipe = pipeline("automatic-speech-recognition", model="NbAiLab/nb-whisper-large", device=
|
66 |
|
67 |
def transcribe_audio(audio_file):
|
68 |
start_time = time.time()
|
|
|
62 |
os.system(f'ffmpeg -i "{filepath}" -ar 16000 -ac 1 -c:a pcm_s16le "{audio_file}"')
|
63 |
return audio_file
|
64 |
|
65 |
+
pipe = pipeline("automatic-speech-recognition", model="NbAiLab/nb-whisper-large", device=device)
|
66 |
|
67 |
def transcribe_audio(audio_file):
|
68 |
start_time = time.time()
|