Spaces:
Build error
Build error
Update app.py
Browse files
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 |
|