Surya commited on
Commit
e07b02c
·
unverified ·
1 Parent(s): cea5804
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
+
6
+ model_path = "ggml-small.en-tdrz.bin"
7
+ transcriber = pipeline("automatic-speech-recognition", model=model_path)
8
 
9
  def transcribe(stream, new_chunk):
10
  sr, y = new_chunk