omar0scarf commited on
Commit
257c23e
·
1 Parent(s): 6948096

تحديث واجهة المستخدم وإصلاح تحذيرات Gradio

Browse files
Files changed (1) hide show
  1. app.py +9 -3
app.py CHANGED
@@ -164,8 +164,14 @@ demo = gr.Interface(
164
  placeholder="اكتب نصاً عربياً هنا للتحليل...",
165
  lines=5
166
  ),
167
- gr.Checkbox(label="تضمين ملخص للنص", default=True),
168
- gr.Checkbox(label="تضمين رد مقترح", default=True)
 
 
 
 
 
 
169
  ],
170
  outputs=gr.Textbox(label="نتائج التحليل", lines=12),
171
  title="🤖 المحلل الذكي للنصوص العربية",
@@ -183,4 +189,4 @@ demo = gr.Interface(
183
  # تشغيل الواجهة
184
  if __name__ == "__main__":
185
  print("جاري تشغيل النموذج...")
186
- demo.launch()
 
164
  placeholder="اكتب نصاً عربياً هنا للتحليل...",
165
  lines=5
166
  ),
167
+ gr.Checkbox(
168
+ label="تضمين ملخص للنص",
169
+ value=True
170
+ ),
171
+ gr.Checkbox(
172
+ label="تضمين رد مقترح",
173
+ value=True
174
+ )
175
  ],
176
  outputs=gr.Textbox(label="نتائج التحليل", lines=12),
177
  title="🤖 المحلل الذكي للنصوص العربية",
 
189
  # تشغيل الواجهة
190
  if __name__ == "__main__":
191
  print("جاري تشغيل النموذج...")
192
+ demo.launch(share=True)