lorem commited on
Commit
4b0910a
·
verified ·
1 Parent(s): 2dc59b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ from transformers import pipeline
5
  cls = pipeline('automatic-speech-recognition',model = "openai/whisper-tiny")
6
 
7
  def transcribe(audio):
8
- transcript = pipeline(audio)
9
  return transcript['text']
10
 
11
  demo = gr.Interface(
 
5
  cls = pipeline('automatic-speech-recognition',model = "openai/whisper-tiny")
6
 
7
  def transcribe(audio):
8
+ transcript = cls(audio)
9
  return transcript['text']
10
 
11
  demo = gr.Interface(