Upload folder using huggingface_hub
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
)
|