camparchimedes commited on
Commit
f7f9941
·
verified ·
1 Parent(s): a543e39

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -63,7 +63,7 @@ def transcribe(file_upload, progress=gr.Progress(track_tqdm=True)): # microphone
63
  #--------------____________________________________________--------------"
64
 
65
  with torch.no_grad():
66
- pipe = pipeline("automatic-speech-recognition", model="NbAiLab/nb-whisper-large", device=device)
67
 
68
  text = pipe(file)["text"]
69
 
 
63
  #--------------____________________________________________--------------"
64
 
65
  with torch.no_grad():
66
+ pipe = pipeline("automatic-speech-recognition", model="NbAiLab/nb-whisper-large", chunk_length_s=30, device=device)
67
 
68
  text = pipe(file)["text"]
69