mhammad commited on
Commit
2413627
·
verified ·
1 Parent(s): 0b9092b

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -329,14 +329,10 @@ iface = gr.Interface(
329
  description="بحث حسب اسم الشركه - التاريخ - نمره الشاحنه"
330
  )
331
 
332
- # Modified to fix Hugging Face Spaces compatibility issue
333
  if __name__ == "__main__":
334
- # Disable analytics and include custom CORS settings for Spaces
335
  iface.launch(
336
- analytics_enabled=False,
337
- show_error=True,
338
  server_name="0.0.0.0",
339
- enable_queue=True,
340
- # Explicitly set share=False for Spaces deployment
341
  share=False
342
  )
 
329
  description="بحث حسب اسم الشركه - التاريخ - نمره الشاحنه"
330
  )
331
 
332
+ # Modified for compatibility with Hugging Face Spaces
333
  if __name__ == "__main__":
334
+ # Using only parameters that are supported in the Spaces environment
335
  iface.launch(
 
 
336
  server_name="0.0.0.0",
 
 
337
  share=False
338
  )