Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -673,12 +673,13 @@ with gr.Blocks(
|
|
| 673 |
|
| 674 |
# Launch configuration
|
| 675 |
if __name__ == "__main__":
|
|
|
|
|
|
|
|
|
|
| 676 |
demo.launch(
|
| 677 |
-
share=
|
| 678 |
server_name="0.0.0.0",
|
| 679 |
server_port=7860,
|
| 680 |
show_error=True,
|
| 681 |
-
# show_tips=True, # REMOVED - this parameter no longer exists in Gradio 4.0+
|
| 682 |
-
enable_queue=True,
|
| 683 |
max_threads=10
|
| 684 |
)
|
|
|
|
| 673 |
|
| 674 |
# Launch configuration
|
| 675 |
if __name__ == "__main__":
|
| 676 |
+
# Enable queue using the new method
|
| 677 |
+
#demo.queue(max_size=20) # Optional: set max queue size
|
| 678 |
+
|
| 679 |
demo.launch(
|
| 680 |
+
share=True,
|
| 681 |
server_name="0.0.0.0",
|
| 682 |
server_port=7860,
|
| 683 |
show_error=True,
|
|
|
|
|
|
|
| 684 |
max_threads=10
|
| 685 |
)
|