mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-15 17:43:03 +03:00
feat(pdf): added new pdf miner that works
This commit is contained in:
parent
963fb05682
commit
e0cf37791b
@ -1,8 +1,8 @@
|
|||||||
from fastapi import UploadFile
|
from fastapi import UploadFile
|
||||||
from langchain.document_loaders import PyPDFLoader
|
from langchain.document_loaders import PyMuPDFLoader
|
||||||
|
|
||||||
from .common import process_file
|
from .common import process_file
|
||||||
|
|
||||||
|
|
||||||
def process_pdf(file: UploadFile, enable_summarization, user):
|
def process_pdf(file: UploadFile, enable_summarization, user):
|
||||||
return process_file(file, PyPDFLoader, ".pdf", enable_summarization, user)
|
return process_file(file, PyMuPDFLoader, ".pdf", enable_summarization, user)
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
pymupdf==1.22.3
|
||||||
langchain==0.0.187
|
langchain==0.0.187
|
||||||
Markdown==3.4.3
|
Markdown==3.4.3
|
||||||
openai==0.27.6
|
openai==0.27.6
|
||||||
|
Loading…
Reference in New Issue
Block a user