Update app.py
Browse files
app.py
CHANGED
@@ -616,11 +616,11 @@ with gr.Blocks(css=custom_css) as iface:
|
|
616 |
api_name="predict"
|
617 |
)
|
618 |
|
619 |
-
# Launch with optimized settings
|
620 |
if __name__ == "__main__":
|
621 |
-
iface.
|
622 |
share=True,
|
623 |
server_name="0.0.0.0",
|
624 |
server_port=7860,
|
625 |
-
|
|
|
626 |
)
|
|
|
616 |
api_name="predict"
|
617 |
)
|
618 |
|
|
|
619 |
if __name__ == "__main__":
|
620 |
+
iface.launch(
|
621 |
share=True,
|
622 |
server_name="0.0.0.0",
|
623 |
server_port=7860,
|
624 |
+
max_threads=3, # Controls concurrency
|
625 |
+
show_error=True
|
626 |
)
|