Spaces:
Sleeping
Sleeping
marcela9409
commited on
Commit
•
45c4890
1
Parent(s):
a4c213e
Completar demo
Browse files
app.py
CHANGED
@@ -5,4 +5,10 @@ modelo = pipeline("automatic-speech-recognition", model="facebook/wav2vec2-large
|
|
5 |
|
6 |
def transcribe(audio):
|
7 |
text = modelo(audio)["text"]
|
8 |
-
return text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
def transcribe(audio):
|
7 |
text = modelo(audio)["text"]
|
8 |
+
return text
|
9 |
+
|
10 |
+
gr.Interface(
|
11 |
+
fn=transcribe,
|
12 |
+
inputs=[gr.Audio(sources="microphone", type="filepath")],
|
13 |
+
outputs=["textbox"]
|
14 |
+
).launch()
|