Update app.py
Browse files
app.py
CHANGED
@@ -167,11 +167,13 @@ iface = gr.Interface(
|
|
167 |
inputs=gr.Textbox(
|
168 |
placeholder="أدخل نص العقد هنا...",
|
169 |
label="نص العقد",
|
170 |
-
lines=30
|
|
|
171 |
),
|
172 |
outputs=gr.Textbox(
|
173 |
label="نتائج التحليل",
|
174 |
-
lines=20
|
|
|
175 |
),
|
176 |
title="محلل العقود القانونية المتقدم",
|
177 |
description="""
|
@@ -183,8 +185,35 @@ iface = gr.Interface(
|
|
183 |
• العناصر المفقودة
|
184 |
• التوصيات القانونية
|
185 |
""",
|
186 |
-
theme=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
)
|
188 |
|
189 |
# تشغيل الواجهة
|
190 |
iface.launch(share=True, debug=True)
|
|
|
|
167 |
inputs=gr.Textbox(
|
168 |
placeholder="أدخل نص العقد هنا...",
|
169 |
label="نص العقد",
|
170 |
+
lines=30,
|
171 |
+
rtl=True, # إضافة دعم RTL للمدخلات
|
172 |
),
|
173 |
outputs=gr.Textbox(
|
174 |
label="نتائج التحليل",
|
175 |
+
lines=20,
|
176 |
+
rtl=True, # إضافة دعم RTL للمخرجات
|
177 |
),
|
178 |
title="محلل العقود القانونية المتقدم",
|
179 |
description="""
|
|
|
185 |
• العناصر المفقودة
|
186 |
• التوصيات القانونية
|
187 |
""",
|
188 |
+
theme=gr.themes.Soft(
|
189 |
+
primary_hue="blue",
|
190 |
+
secondary_hue="blue",
|
191 |
+
neutral_hue="blue",
|
192 |
+
text_direction="rtl", # تعيين اتجاه النص من اليمين إلى اليسار
|
193 |
+
),
|
194 |
+
css="""
|
195 |
+
.gradio-container {
|
196 |
+
direction: rtl !important;
|
197 |
+
text-align: right !important;
|
198 |
+
}
|
199 |
+
.output-markdown {
|
200 |
+
direction: rtl !important;
|
201 |
+
text-align: right !important;
|
202 |
+
}
|
203 |
+
.input-markdown {
|
204 |
+
direction: rtl !important;
|
205 |
+
text-align: right !important;
|
206 |
+
}
|
207 |
+
label {
|
208 |
+
text-align: right !important;
|
209 |
+
}
|
210 |
+
.prose {
|
211 |
+
direction: rtl !important;
|
212 |
+
text-align: right !important;
|
213 |
+
}
|
214 |
+
"""
|
215 |
)
|
216 |
|
217 |
# تشغيل الواجهة
|
218 |
iface.launch(share=True, debug=True)
|
219 |
+
|