镜像自地址
https://github.com/binary-husky/gpt_academic.git
已同步 2025-12-06 06:26:47 +00:00
适配新版gradio的暗色主题
这个提交包含在:
2
main.py
2
main.py
@@ -187,7 +187,7 @@ def main():
|
|||||||
def open():
|
def open():
|
||||||
time.sleep(2) # 打开浏览器
|
time.sleep(2) # 打开浏览器
|
||||||
DARK_MODE, = get_conf('DARK_MODE')
|
DARK_MODE, = get_conf('DARK_MODE')
|
||||||
if DARK_MODE: webbrowser.open_new_tab(f"http://localhost:{PORT}/?__dark-theme=true")
|
if DARK_MODE: webbrowser.open_new_tab(f"http://localhost:{PORT}/?__theme=dark")
|
||||||
else: webbrowser.open_new_tab(f"http://localhost:{PORT}")
|
else: webbrowser.open_new_tab(f"http://localhost:{PORT}")
|
||||||
threading.Thread(target=open, name="open-browser", daemon=True).start()
|
threading.Thread(target=open, name="open-browser", daemon=True).start()
|
||||||
threading.Thread(target=auto_update, name="self-upgrade", daemon=True).start()
|
threading.Thread(target=auto_update, name="self-upgrade", daemon=True).start()
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户