Spaces:
Runtime error
Runtime error
| import gradio as gr | |
| import whisper | |
| model = whisper.load_model("base") | |
| def transcribe(video): | |
| result = model.transcribe(video, language="ar") | |
| return result["text"] | |
| gr.Interface( | |
| fn=transcribe, | |
| inputs=gr.Video(label="ارفع فيديو"), | |
| outputs=gr.Textbox(label="النص"), | |
| title="Captions AI", | |
| description="تحويل الفيديو إلى نص بالذكاء الاصطناعي" | |
| ).launch() |