Rasha-83 commited on
Commit
74fb7d2
·
verified ·
1 Parent(s): 13be81b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +32 -3
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="huggingface"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+