Skip to content

Commit

Permalink
移除插件依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-husky committed Jul 17, 2023
1 parent aa51d6f commit 6d0bcea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crazy_functions/下载arxiv论文翻译摘要.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,11 @@ def 下载arxiv论文并翻译摘要(txt, llm_kwargs, plugin_kwargs, chatbot, hi

# 尝试导入依赖,如果缺少依赖,则给出安装建议
try:
import pdfminer, bs4
import bs4
except:
report_execption(chatbot, history,
a = f"解析项目: {txt}",
b = f"导入软件依赖失败。使用该模块需要额外依赖,安装方法```pip install --upgrade pdfminer beautifulsoup4```。")
b = f"导入软件依赖失败。使用该模块需要额外依赖,安装方法```pip install --upgrade beautifulsoup4```。")
yield from update_ui(chatbot=chatbot, history=history) # 刷新界面
return

Expand Down

0 comments on commit 6d0bcea

Please sign in to comment.