ramysaidagieb commited on
Commit
4ce9f60
·
verified ·
1 Parent(s): 9f0b7c7

Delete app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -18
app.py DELETED
@@ -1,18 +0,0 @@
1
- import gradio as gr
2
- from rag_pipeline import load_rag_chain
3
-
4
- rag_chain = load_rag_chain()
5
-
6
- def ask_question(query):
7
- return rag_chain.invoke(query)['result']
8
-
9
- iface = gr.Interface(
10
- fn=ask_question,
11
- inputs=gr.Textbox(lines=3, placeholder="اكتب سؤالك هنا...", label="سؤالك", rtl=True),
12
- outputs=gr.Textbox(label="الإجابة", rtl=True),
13
- title="🧠 روبوت دردشة عربي (PDF)",
14
- description="اسأل باللغة العربية أو اللهجة المصرية عن محتوى ملفات PDF."
15
- )
16
-
17
- if __name__ == "__main__":
18
- iface.launch()