镜像自地址
https://github.com/binary-husky/gpt_academic.git
已同步 2025-12-07 23:16:48 +00:00
Update main.py
这个提交包含在:
2
main.py
2
main.py
@@ -101,7 +101,7 @@ with gr.Blocks(theme=set_theme, analytics_enabled=False) as demo:
|
|||||||
# gradio的inbrowser触发不太稳定,回滚代码到原始的浏览器打开函数
|
# gradio的inbrowser触发不太稳定,回滚代码到原始的浏览器打开函数
|
||||||
def auto_opentab_delay():
|
def auto_opentab_delay():
|
||||||
import threading, webbrowser, time
|
import threading, webbrowser, time
|
||||||
print(f"URL http://localhost:{PORT}")
|
print(f"如果浏览器没有自动打开,请复制并转到以下URL: http://localhost:{PORT}")
|
||||||
def open():
|
def open():
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
webbrowser.open_new_tab(f'http://localhost:{PORT}')
|
webbrowser.open_new_tab(f'http://localhost:{PORT}')
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户