Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,14 +1,7 @@
|
|
1 |
-
# import gradio as gr
|
2 |
-
|
3 |
-
# model_interface = gr.Interface.load("models/jonatasgrosman/wav2vec2-large-xlsr-53-arabic", wait=True)
|
4 |
-
# model_interface.launch()
|
5 |
-
# Use a pipeline as a high-level helper
|
6 |
-
|
7 |
-
|
8 |
from transformers import pipeline
|
9 |
import gradio as gr
|
10 |
|
11 |
-
pipe = pipeline(model="jonatasgrosman/wav2vec2-large-xlsr-53-arabic")
|
12 |
|
13 |
def transcribe(audio):
|
14 |
text = pipe(audio)["text"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
|
4 |
+
pipe = pipeline(model="jonatasgrosman/wav2vec2-large-xlsr-53-arabic")
|
5 |
|
6 |
def transcribe(audio):
|
7 |
text = pipe(audio)["text"]
|