ArnabDeo commited on
Commit
09b29e2
·
verified ·
1 Parent(s): 3d4d057

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -673,12 +673,13 @@ with gr.Blocks(
673
 
674
  # Launch configuration
675
  if __name__ == "__main__":
 
 
 
676
  demo.launch(
677
- share=False, # Set to True for public sharing
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
  )