James040 commited on
Commit
7943162
·
verified ·
1 Parent(s): e0c373f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -43,4 +43,5 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
43
 
44
  # 5. Launch the app with strict queuing to protect the CPU
45
  if __name__ == "__main__":
46
- demo.queue(default_concurrency_limit=1).launch(ssr_mode=False)
 
 
43
 
44
  # 5. Launch the app with strict queuing to protect the CPU
45
  if __name__ == "__main__":
46
+ # Explicitly define the Hugging Face Docker network to prevent localhost errors
47
+ demo.queue(default_concurrency_limit=1).launch(server_name="0.0.0.0", server_port=7860)