Collapseruin commited on
Commit
c7824eb
1 Parent(s): 0df796a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,6 +1,8 @@
 
1
  import gradio as gr
2
 
3
- gr.load("models/puyao/whisper-small-hi").launch()
 
4
 
5
  def transcribe(audio):
6
  text = pipe(audio)["text"]
 
1
+ from transformers import pipeline
2
  import gradio as gr
3
 
4
+ pipe = pipeline(model="Puyao/whisper-small-hi")
5
+ # gr.load("models/puyao/whisper-small-hi").launch()
6
 
7
  def transcribe(audio):
8
  text = pipe(audio)["text"]