binary-husky commited on
Commit
a88a427
1 Parent(s): 36890a1

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -101,7 +101,7 @@ with gr.Blocks(theme=set_theme, analytics_enabled=False) as demo:
101
  # gradio的inbrowser触发不太稳定,回滚代码到原始的浏览器打开函数
102
  def auto_opentab_delay():
103
  import threading, webbrowser, time
104
- print(f"URL http://localhost:{PORT}")
105
  def open():
106
  time.sleep(2)
107
  webbrowser.open_new_tab(f'http://localhost:{PORT}')
 
101
  # gradio的inbrowser触发不太稳定,回滚代码到原始的浏览器打开函数
102
  def auto_opentab_delay():
103
  import threading, webbrowser, time
104
+ print(f"如果浏览器没有自动打开,请复制并转到以下URL: http://localhost:{PORT}")
105
  def open():
106
  time.sleep(2)
107
  webbrowser.open_new_tab(f'http://localhost:{PORT}')