GhadaAlothman commited on
Commit
30ddbeb
·
verified ·
1 Parent(s): 0d14ca9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -59,4 +59,10 @@ demo = gr.Interface(
59
  description="أداة ذكية لتقييم مقروئية النصوص العربية باستخدام نموذج AraBERT."
60
  )
61
 
62
- demo.launch(server_name="0.0.0.0", server_port=7860, share=True)
 
 
 
 
 
 
 
59
  description="أداة ذكية لتقييم مقروئية النصوص العربية باستخدام نموذج AraBERT."
60
  )
61
 
62
+ iface.launch(
63
+ server_name="0.0.0.0",
64
+ server_port=7860,
65
+ enable_queue=True,
66
+ share=True,
67
+ allowed_origins=["*"] # ✅ this line enables CORS for your React app
68
+ )