Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
imClumsyPanda committed May 31, 2023
2 parents 0f2ea29 + 5c0c1ee commit a072905
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,6 @@ Web UI 可以实现如下功能:
- [x] VUE 前端

## 项目交流群
![二维码](img/qr_code_24.jpg)
![二维码](img/qr_code_25.JPG)

🎉 langchain-ChatGLM 项目交流群,如果你也对本项目感兴趣,欢迎加入群聊参与讨论交流。
Binary file added img/qr_code_25.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion loader/pdf_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ def pdf_ocr_txt(filepath, dir_path="tmp_files"):
result = ocr.ocr(img_name)
ocr_result = [i[1][0] for line in result for i in line]
fout.write("\n".join(ocr_result))
os.remove(img_name)
if os.path.exists(img_name):
os.remove(img_name)
return txt_file_path

txt_file_path = pdf_ocr_txt(self.file_path)
Expand Down

0 comments on commit a072905

Please sign in to comment.