s1123725 commited on
Commit
5fe581a
·
verified ·
1 Parent(s): a9451f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -354,4 +354,5 @@ with gr.Blocks() as demo:
354
  run_btn.click(fn=run_and_submit_all, outputs=[status_box, table])
355
 
356
  if __name__ == "__main__":
357
- demo.launch(server_name="0.0.0.0", server_port=7860, debug=True)
 
 
354
  run_btn.click(fn=run_and_submit_all, outputs=[status_box, table])
355
 
356
  if __name__ == "__main__":
357
+ # 在無法直接訪問 localhost 的環境,用 share=True
358
+ demo.launch(server_name="0.0.0.0", server_port=7860, debug=True, share=True)