mhammad commited on
Commit
98c3b82
·
verified ·
1 Parent(s): 3b2eb38

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -325,10 +325,18 @@ iface = gr.Interface(
325
  gr.Textbox(label="مجموع الدخل الاسبوعي"),
326
  gr.Audio(label="Play Voice") # Audio output for playing the voice
327
  ],
328
- live=False,
329
  title="شركه ابناء عرفات",
330
  description="بحث حسب اسم الشركه - التاريخ - نمره الشاحنه"
331
  )
332
 
 
333
  if __name__ == "__main__":
334
- iface.launch(share=True)
 
 
 
 
 
 
 
 
 
325
  gr.Textbox(label="مجموع الدخل الاسبوعي"),
326
  gr.Audio(label="Play Voice") # Audio output for playing the voice
327
  ],
 
328
  title="شركه ابناء عرفات",
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
+ )