Abosteet's picture
Create app.py
a11933a verified
raw
history blame contribute delete
427 Bytes
from transformers import pipeline
import gradio as gr
pipe = pipeline(model="Abosteet/whisper-medium-arabic")
def transcribe(audio):
text = pipe(audio)["text"]
return text
iface = gr.Interface(
fn=transcribe,
inputs=gr.Audio(type="filepath"),
outputs="text",
title="The Arab Whisper",
description="Arabic speech recognition using a fine-tuned Whisper medium model.",
)
iface.launch(inline=False)