realmanise commited on
Commit
53d3f0d
·
verified ·
1 Parent(s): 5da44cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -73,6 +73,5 @@ demo = gr.Interface(
73
  # Launch the interface safely with no unexpected keyword arguments
74
  demo.launch()
75
 
76
- # Keep the server background process alive indefinitely so the container doesn't exit
77
- while True:
78
- time.sleep(3600)
 
73
  # Launch the interface safely with no unexpected keyword arguments
74
  demo.launch()
75
 
76
+ # Launch the interface and let Gradio natively handle the persistent background worker
77
+ demo.queue().launch(server_name="0.0.0.0", server_port=7860)