From a88a42799f7c966121e85de9156d0eed4dfb6bfd Mon Sep 17 00:00:00 2001 From: binary-husky <96192199+binary-husky@users.noreply.github.com> Date: Fri, 31 Mar 2023 13:33:03 +0800 Subject: [PATCH] Update main.py --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 4217304..c69795a 100644 --- a/main.py +++ b/main.py @@ -101,7 +101,7 @@ with gr.Blocks(theme=set_theme, analytics_enabled=False) as demo: # gradio的inbrowser触发不太稳定,回滚代码到原始的浏览器打开函数 def auto_opentab_delay(): import threading, webbrowser, time - print(f"URL http://localhost:{PORT}") + print(f"如果浏览器没有自动打开,请复制并转到以下URL: http://localhost:{PORT}") def open(): time.sleep(2) webbrowser.open_new_tab(f'http://localhost:{PORT}')