Teapack1 commited on
Commit
64843fe
1 Parent(s): d813203

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -2,7 +2,9 @@ import gradio as gr
2
  from transformers import pipeline
3
  import numpy as np
4
 
5
- transcriber = pipeline("automatic-speech-recognition", model="openai/whisper-base.en")
 
 
6
 
7
  def transcribe(stream, new_chunk):
8
  sr, y = new_chunk
 
2
  from transformers import pipeline
3
  import numpy as np
4
 
5
+ asr_model = "distil-whisper/distil-medium.en"
6
+
7
+ transcriber = pipeline("automatic-speech-recognition", model=asr_model)
8
 
9
  def transcribe(stream, new_chunk):
10
  sr, y = new_chunk