Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|