Spaces:
Runtime error
Runtime error
binary-husky
commited on
Commit
•
3cf9c88
1
Parent(s):
7804500
暗色模式适配新版gradio
Browse files
main.py
CHANGED
@@ -183,7 +183,7 @@ def main():
|
|
183 |
import threading, webbrowser, time
|
184 |
print(f"如果浏览器没有自动打开,请复制并转到以下URL:")
|
185 |
print(f"\t(亮色主题): http://localhost:{PORT}")
|
186 |
-
print(f"\t(暗色主题): http://localhost:{PORT}/?
|
187 |
def open():
|
188 |
time.sleep(2) # 打开浏览器
|
189 |
DARK_MODE, = get_conf('DARK_MODE')
|
|
|
183 |
import threading, webbrowser, time
|
184 |
print(f"如果浏览器没有自动打开,请复制并转到以下URL:")
|
185 |
print(f"\t(亮色主题): http://localhost:{PORT}")
|
186 |
+
print(f"\t(暗色主题): http://localhost:{PORT}/?__theme=dark")
|
187 |
def open():
|
188 |
time.sleep(2) # 打开浏览器
|
189 |
DARK_MODE, = get_conf('DARK_MODE')
|