Spaces:
Sleeping
Sleeping
MohammedNasser
commited on
Commit
•
fecc1c6
1
Parent(s):
b8616b2
Update app.py
Browse files
app.py
CHANGED
@@ -128,16 +128,6 @@ body {
|
|
128 |
color: red !important;
|
129 |
}
|
130 |
|
131 |
-
|
132 |
-
|
133 |
-
.message.user::before {
|
134 |
-
content: '👤';
|
135 |
-
}
|
136 |
-
|
137 |
-
.message.bot::before {
|
138 |
-
content: '🤖';
|
139 |
-
}
|
140 |
-
|
141 |
.gr-textbox input, .gr-textbox textarea {
|
142 |
text-align: right !important; /* Align text to the right */
|
143 |
direction: rtl !important; /* Set RTL text direction */
|
@@ -222,7 +212,7 @@ def chat(user_input):
|
|
222 |
|
223 |
with gr.Blocks(css=custom_css) as demo:
|
224 |
with gr.Row():
|
225 |
-
gr.Markdown("<h2 style='text-align: center; color: #00000;'>المساعد العربي للدردشة مع
|
226 |
|
227 |
with gr.Row():
|
228 |
pdf_input = gr.File(label="اختر ملف PDF")
|
@@ -232,10 +222,10 @@ with gr.Blocks(css=custom_css) as demo:
|
|
232 |
submit_button_pdf = gr.Button("ارفع الملف", interactive=False)
|
233 |
with gr.Row():
|
234 |
with gr.Column(scale=3):
|
235 |
-
chatbot = gr.Chatbot(label="
|
236 |
|
237 |
with gr.Row():
|
238 |
-
chat_input = gr.Textbox(label="أدخل سؤالك هنا
|
239 |
#chat_output = gr.Textbox(label="الرد الآلي 🤖", rtl=True, visible=False)
|
240 |
with gr.Row():
|
241 |
audio_output = gr.Audio(label="🔊", visible=False)
|
|
|
128 |
color: red !important;
|
129 |
}
|
130 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
.gr-textbox input, .gr-textbox textarea {
|
132 |
text-align: right !important; /* Align text to the right */
|
133 |
direction: rtl !important; /* Set RTL text direction */
|
|
|
212 |
|
213 |
with gr.Blocks(css=custom_css) as demo:
|
214 |
with gr.Row():
|
215 |
+
gr.Markdown("<h2 style='text-align: center; color: #00000;'>المساعد العربي للدردشة مع 📄 </h2>")
|
216 |
|
217 |
with gr.Row():
|
218 |
pdf_input = gr.File(label="اختر ملف PDF")
|
|
|
222 |
submit_button_pdf = gr.Button("ارفع الملف", interactive=False)
|
223 |
with gr.Row():
|
224 |
with gr.Column(scale=3):
|
225 |
+
chatbot = gr.Chatbot(label="💬", elem_id="chatbox", height=400, rtl=True, layout='bubble', bubble_full_width=False)
|
226 |
|
227 |
with gr.Row():
|
228 |
+
chat_input = gr.Textbox(label="أدخل سؤالك هنا", rtl=True, visible=False, placeholder="أخل سؤالك هنا ..", elem_id="inputbox", lines=2)
|
229 |
#chat_output = gr.Textbox(label="الرد الآلي 🤖", rtl=True, visible=False)
|
230 |
with gr.Row():
|
231 |
audio_output = gr.Audio(label="🔊", visible=False)
|