GhadaAlothman commited on
Commit
dfb4735
·
verified ·
1 Parent(s): 92e4e70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -6
app.py CHANGED
@@ -59,11 +59,6 @@ def analyze_text(text):
59
  stats = compute_metrics(text)
60
  return {"Predicted_Label": label, **stats}
61
 
62
-
63
- # ✅ السماح بطلبات من أي origin (Vercel أو غيره)
64
- gr.set_static_paths(allowed_origins=["*"])
65
-
66
- # ✅ واجهة Gradio + تفعيل API endpoint
67
  demo = gr.Interface(
68
  fn=analyze_text,
69
  inputs=gr.Textbox(label="أدخل النص العربي هنا", lines=6),
@@ -73,5 +68,4 @@ demo = gr.Interface(
73
  description="أداة ذكية لتقييم مقروئية النصوص العربية باستخدام نموذج AraBERT."
74
  )
75
 
76
- # ✅ إطلاق التطبيق
77
  demo.launch(server_name="0.0.0.0", server_port=7860, share=True)
 
59
  stats = compute_metrics(text)
60
  return {"Predicted_Label": label, **stats}
61
 
 
 
 
 
 
62
  demo = gr.Interface(
63
  fn=analyze_text,
64
  inputs=gr.Textbox(label="أدخل النص العربي هنا", lines=6),
 
68
  description="أداة ذكية لتقييم مقروئية النصوص العربية باستخدام نموذج AraBERT."
69
  )
70
 
 
71
  demo.launch(server_name="0.0.0.0", server_port=7860, share=True)