camparchimedes commited on
Commit
bdf9513
·
verified ·
1 Parent(s): 6a801d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=0)
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()