feat(读文章写摘要):支持pdf文件批量阅读及总结
This commit is contained in:
3
main.py
3
main.py
@@ -4,8 +4,7 @@ from predict import predict
|
||||
from toolbox import format_io, find_free_port
|
||||
|
||||
# 建议您复制一个config_private.py放自己的秘密, 如API和代理网址, 避免不小心传github被别人看到
|
||||
try: from config_private import proxies, WEB_PORT, LLM_MODEL
|
||||
except: from config import proxies, WEB_PORT, LLM_MODEL
|
||||
from config_private import proxies, WEB_PORT, LLM_MODEL
|
||||
|
||||
# 如果WEB_PORT是-1, 则随机选取WEB端口
|
||||
PORT = find_free_port() if WEB_PORT <= 0 else WEB_PORT
|
||||
|
||||
Reference in New Issue
Block a user