Spaces:
Runtime error
Runtime error
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() |