Spaces:
Runtime error
Runtime error
错别字
Browse files
main.py
CHANGED
@@ -161,8 +161,8 @@ with gr.Blocks(theme=set_theme, analytics_enabled=False, css=advanced_css) as de
|
|
161 |
def auto_opentab_delay():
|
162 |
import threading, webbrowser, time
|
163 |
print(f"如果浏览器没有自动打开,请复制并转到以下URL:")
|
164 |
-
print(f"\t
|
165 |
-
print(f"\t
|
166 |
def open():
|
167 |
time.sleep(2) # 打开浏览器
|
168 |
webbrowser.open_new_tab(f"http://localhost:{PORT}/?__dark-theme=true")
|
|
|
161 |
def auto_opentab_delay():
|
162 |
import threading, webbrowser, time
|
163 |
print(f"如果浏览器没有自动打开,请复制并转到以下URL:")
|
164 |
+
print(f"\t(亮色主题): http://localhost:{PORT}")
|
165 |
+
print(f"\t(暗色主题): http://localhost:{PORT}/?__dark-theme=true")
|
166 |
def open():
|
167 |
time.sleep(2) # 打开浏览器
|
168 |
webbrowser.open_new_tab(f"http://localhost:{PORT}/?__dark-theme=true")
|