RAG47V3 / app.py
ramysaidagieb's picture
Update app.py
8aab188 verified
raw
history blame contribute delete
466 Bytes
import gradio as gr
from rag_pipeline import answer
iface = gr.Interface(
fn=answer,
inputs=gr.Textbox(lines=2, placeholder="اكتب سؤالك هنا...", label="سؤالك", rtl=True),
outputs=gr.Textbox(label="الإجابة", rtl=True),
title="🤖 Arabic PDF QA Bot",
description="اسأل باللغة العربية عن محتوى ملفات PDF (يدعم اللهجة المصرية)."
)
if __name__ == "__main__":
iface.launch()