gradioapp commited on
Commit
50a66b5
1 Parent(s): c05c05d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1,4 +1,8 @@
 
 
1
  from transformers import pipeline
 
 
2
  def transcribe(audio):
3
  text = p(audio)["text"]
4
  return text
 
1
+ pip install transformers
2
+
3
  from transformers import pipeline
4
+ p = pipeline("automatic-speech-recognition")
5
+
6
  def transcribe(audio):
7
  text = p(audio)["text"]
8
  return text