Spaces:
Running
Running
Update app.py
Browse files
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
|
| 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 |
+
|