IR_ESG_RAG_Bot / app.py
abdelazim2008ombadi's picture
Update app.py
2bd1d25 verified
raw
history blame
424 Bytes
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()