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()