mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-02-07 23:43:30 +08:00
Merge branch 'dev'
This commit is contained in:
commit
144d9a8ca3
@ -1,12 +0,0 @@
|
|||||||
from configs.model_config import *
|
|
||||||
import nltk
|
|
||||||
|
|
||||||
nltk.data.path = [NLTK_DATA_PATH] + nltk.data.path
|
|
||||||
|
|
||||||
filepath = "./img/test.jpg"
|
|
||||||
from loader import UnstructuredPaddleImageLoader
|
|
||||||
|
|
||||||
loader = UnstructuredPaddleImageLoader(filepath, mode="elements")
|
|
||||||
docs = loader.load()
|
|
||||||
for doc in docs:
|
|
||||||
print(doc)
|
|
||||||
12
test_pdf.py
12
test_pdf.py
@ -1,12 +0,0 @@
|
|||||||
from configs.model_config import *
|
|
||||||
import nltk
|
|
||||||
|
|
||||||
nltk.data.path = [NLTK_DATA_PATH] + nltk.data.path
|
|
||||||
|
|
||||||
filepath = "docs/test.pdf"
|
|
||||||
from loader import UnstructuredPaddlePDFLoader
|
|
||||||
|
|
||||||
loader = UnstructuredPaddlePDFLoader(filepath, mode="elements")
|
|
||||||
docs = loader.load()
|
|
||||||
for doc in docs:
|
|
||||||
print(doc)
|
|
||||||
Loading…
x
Reference in New Issue
Block a user