Spaces:
Runtime error
Runtime error
Commit
•
edf267e
1
Parent(s):
847777e
Update app.py
Browse files
app.py
CHANGED
@@ -5,4 +5,16 @@ processor = AutoProcessor.from_pretrained("patrickvonplaten/mms-1b")
|
|
5 |
|
6 |
model = AutoModelForPreTraining.from_pretrained("patrickvonplaten/mms-1b")
|
7 |
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
model = AutoModelForPreTraining.from_pretrained("patrickvonplaten/mms-1b")
|
7 |
|
8 |
+
def transcribe(audio):
|
9 |
+
Popen('python mms_infer.py --model model --lang eng --audio audio')
|
10 |
+
|
11 |
+
gr.Interface(
|
12 |
+
title = 'MetaAI (Facebook Research) MMS (Massively Multilingual Speech) ASR',
|
13 |
+
fn=transcribe,
|
14 |
+
inputs=[
|
15 |
+
gr.inputs.Audio(source="microphone", type="filepath")
|
16 |
+
],
|
17 |
+
outputs=[
|
18 |
+
"textbox"
|
19 |
+
],
|
20 |
+
live=True).launch()
|