Spaces:
Sleeping
Sleeping
File size: 352 Bytes
492b047 0a01524 2434606 ec1eee9 e015d06 daa7de0 492b047 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
from transformers import pipeline
import gradio as gr
import os
#add
pipe = pipeline(model="jonatasgrosman/wav2vec2-large-xlsr-53-arabic")
def transcribe(audio):
text = pipe(audio)["text"]
return text
iface = gr.Interface(
fn=transcribe,
inputs=gr.Audio(source="upload", type="filepath"),
outputs="text",
)
iface.launch() |