Spaces:
Sleeping
Sleeping
import gradio as gr | |
from transformers import pipeline | |
# تحميل الموديل | |
pipe = pipeline("automatic-speech-recognition", model="openai/whisper-large-v3-turbo") | |
def transcribe(audio): | |
result = pipe(audio) | |
return result["text"] | |
# واجهة التطبيق | |
iface = gr.Interface( | |
fn=transcribe, | |
inputs=gr.Audio(sources=["upload"], type="filepath"), | |
outputs="text", | |
title="Whisper Large V3 Turbo ASR", | |
description="ارفع ملف صوتي وسيتم تحويله إلى نص باستخدام Whisper Large V3 Turbo." | |
) | |
iface.launch() | |