GhadaAlothman commited on
Commit
ca957ab
·
verified ·
1 Parent(s): 3847042

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -77,13 +77,13 @@ def analyze_text(text):
77
  # =======================
78
  demo = gr.Interface(
79
  fn=analyze_text,
80
- inputs=gr.Textbox(label="أدخل النص العربي هنا", lines=6, placeholder="اكتب النص هنا..."),
81
  outputs=gr.JSON(label="نتائج التحليل"),
 
82
  title="Arabic Readability Analyzer",
83
- description="أداة ذكية لتقييم مقروئية النصوص العربية باستخدام نموذج AraBERT.",
84
  )
85
 
86
- # =======================
87
- # تشغيل التطبيق (بدون share=True)
88
- # =======================
89
  demo.launch()
 
 
 
77
  # =======================
78
  demo = gr.Interface(
79
  fn=analyze_text,
80
+ inputs=gr.Textbox(label="أدخل النص العربي هنا", lines=6),
81
  outputs=gr.JSON(label="نتائج التحليل"),
82
+ api_name="predict", # ← تأكدي إن هذا السطر موجود!
83
  title="Arabic Readability Analyzer",
84
+ description="أداة ذكية لتقييم مقروئية النصوص العربية باستخدام نموذج AraBERT."
85
  )
86
 
 
 
 
87
  demo.launch()
88
+
89
+