Merge branch 'master' into dev
This commit is contained in:
commit
a072905893
|
|
@ -221,6 +221,6 @@ Web UI 可以实现如下功能:
|
||||||
- [x] VUE 前端
|
- [x] VUE 前端
|
||||||
|
|
||||||
## 项目交流群
|
## 项目交流群
|
||||||

|

|
||||||
|
|
||||||
🎉 langchain-ChatGLM 项目交流群,如果你也对本项目感兴趣,欢迎加入群聊参与讨论交流。
|
🎉 langchain-ChatGLM 项目交流群,如果你也对本项目感兴趣,欢迎加入群聊参与讨论交流。
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 274 KiB |
|
|
@ -39,7 +39,8 @@ class UnstructuredPaddlePDFLoader(UnstructuredFileLoader):
|
||||||
result = ocr.ocr(img_name)
|
result = ocr.ocr(img_name)
|
||||||
ocr_result = [i[1][0] for line in result for i in line]
|
ocr_result = [i[1][0] for line in result for i in line]
|
||||||
fout.write("\n".join(ocr_result))
|
fout.write("\n".join(ocr_result))
|
||||||
os.remove(img_name)
|
if os.path.exists(img_name):
|
||||||
|
os.remove(img_name)
|
||||||
return txt_file_path
|
return txt_file_path
|
||||||
|
|
||||||
txt_file_path = pdf_ocr_txt(self.file_path)
|
txt_file_path = pdf_ocr_txt(self.file_path)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue