Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -273,9 +273,9 @@ with gr.Blocks(css=custom_css) as demo:
|
|
| 273 |
gr.Markdown("""
|
| 274 |
|
| 275 |
<ul style="list-style-type: disc;">
|
| 276 |
-
<li style="color: #
|
| 277 |
-
<li style="color: #
|
| 278 |
-
<li style="color: #
|
| 279 |
</ul>""", rtl=True)
|
| 280 |
pdf_input = gr.File(label="اختر ملف PDF")
|
| 281 |
with gr.Row():
|
|
@@ -284,7 +284,7 @@ with gr.Blocks(css=custom_css) as demo:
|
|
| 284 |
submit_button_pdf = gr.Button("ارفع الملف", interactive=False)
|
| 285 |
with gr.Row():
|
| 286 |
with gr.Column(scale=3):
|
| 287 |
-
chatbot = gr.Chatbot(label="الشات",
|
| 288 |
with gr.Row():
|
| 289 |
chat_label = gr.HTML(value='')
|
| 290 |
with gr.Row():
|
|
|
|
| 273 |
gr.Markdown("""
|
| 274 |
|
| 275 |
<ul style="list-style-type: disc;">
|
| 276 |
+
<li style="color: #E88D67; font-size: 12px;">تأكد من اختيار ملف PDF.</li>
|
| 277 |
+
<li style="color: #E88D67; font-size: 12px;">حجم الملف يجب أن يكون أقل من 10 ميجابايت.</li>
|
| 278 |
+
<li style="color: #E88D67; font-size: 12px;">يجب أن يكون المحتوى باللغة العربية.</li>
|
| 279 |
</ul>""", rtl=True)
|
| 280 |
pdf_input = gr.File(label="اختر ملف PDF")
|
| 281 |
with gr.Row():
|
|
|
|
| 284 |
submit_button_pdf = gr.Button("ارفع الملف", interactive=False)
|
| 285 |
with gr.Row():
|
| 286 |
with gr.Column(scale=3):
|
| 287 |
+
chatbot = gr.Chatbot(label="الشات", height=400, rtl=True, layout='bubble', bubble_full_width=False)
|
| 288 |
with gr.Row():
|
| 289 |
chat_label = gr.HTML(value='')
|
| 290 |
with gr.Row():
|