feat(读文章写摘要):支持pdf文件批量阅读及总结

This commit is contained in:
ValeriaWong
2023-03-29 17:57:17 +08:00
parent c06c60b977
commit 3f635bc4aa
2 changed files with 55 additions and 6 deletions

View File

@@ -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