Spaces:
Runtime error
Runtime error
File size: 333 Bytes
1cd9db7 2151de8 1cd9db7 db4b125 1cd9db7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
from transformers import pipeline
import gradio as gr
pipe = pipeline(model="models/tarteel-ai/whisper-base-ar-quran")
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() |