镜像自地址
https://github.com/binary-husky/gpt_academic.git
已同步 2025-12-06 14:36:48 +00:00
Merge branch 'master' into langchain
这个提交包含在:
@@ -99,6 +99,7 @@ services:
|
|||||||
command: >
|
command: >
|
||||||
bash -c " echo '[gpt-academic] 正在从github拉取最新代码...' &&
|
bash -c " echo '[gpt-academic] 正在从github拉取最新代码...' &&
|
||||||
git pull &&
|
git pull &&
|
||||||
|
pip install -r requirements.txt &&
|
||||||
echo '[jittorllms] 正在从github拉取最新代码...' &&
|
echo '[jittorllms] 正在从github拉取最新代码...' &&
|
||||||
git --git-dir=request_llm/jittorllms/.git --work-tree=request_llm/jittorllms pull --force &&
|
git --git-dir=request_llm/jittorllms/.git --work-tree=request_llm/jittorllms pull --force &&
|
||||||
python3 -u main.py"
|
python3 -u main.py"
|
||||||
|
|||||||
二进制文件未显示。
8
main.py
8
main.py
@@ -197,7 +197,10 @@ def main():
|
|||||||
threading.Thread(target=warm_up_modules, name="warm-up", daemon=True).start()
|
threading.Thread(target=warm_up_modules, name="warm-up", daemon=True).start()
|
||||||
|
|
||||||
auto_opentab_delay()
|
auto_opentab_delay()
|
||||||
demo.queue(concurrency_count=CONCURRENT_COUNT).launch(server_name="0.0.0.0", server_port=PORT, auth=AUTHENTICATION, favicon_path="docs/logo.png")
|
demo.queue(concurrency_count=CONCURRENT_COUNT).launch(
|
||||||
|
server_name="0.0.0.0", server_port=PORT,
|
||||||
|
favicon_path="docs/logo.png", auth=AUTHENTICATION,
|
||||||
|
blocked_paths=["config.py","config_private.py","docker-compose.yml","Dockerfile"])
|
||||||
|
|
||||||
# 如果需要在二级路径下运行
|
# 如果需要在二级路径下运行
|
||||||
# CUSTOM_PATH, = get_conf('CUSTOM_PATH')
|
# CUSTOM_PATH, = get_conf('CUSTOM_PATH')
|
||||||
@@ -205,7 +208,8 @@ def main():
|
|||||||
# from toolbox import run_gradio_in_subpath
|
# from toolbox import run_gradio_in_subpath
|
||||||
# run_gradio_in_subpath(demo, auth=AUTHENTICATION, port=PORT, custom_path=CUSTOM_PATH)
|
# run_gradio_in_subpath(demo, auth=AUTHENTICATION, port=PORT, custom_path=CUSTOM_PATH)
|
||||||
# else:
|
# else:
|
||||||
# demo.launch(server_name="0.0.0.0", server_port=PORT, auth=AUTHENTICATION, favicon_path="docs/logo.png")
|
# demo.launch(server_name="0.0.0.0", server_port=PORT, auth=AUTHENTICATION, favicon_path="docs/logo.png",
|
||||||
|
# blocked_paths=["config.py","config_private.py","docker-compose.yml","Dockerfile"])
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户