valeriylo commited on
Commit
af43b0b
·
1 Parent(s): dd1c6b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -7,6 +7,7 @@ from langchain.document_loaders import (
7
  EverNoteLoader,
8
  PDFMinerLoader,
9
  UnstructuredPDFLoader,
 
10
  TextLoader,
11
  UnstructuredEmailLoader,
12
  UnstructuredEPubLoader,
@@ -46,7 +47,8 @@ LOADER_MAPPING = {
46
  ".md": (UnstructuredMarkdownLoader, {}),
47
  ".odt": (UnstructuredODTLoader, {}),
48
  #".pdf": (PDFMinerLoader, {}),
49
- ".pdf": (UnstructuredPDFLoader, {}),
 
50
  ".ppt": (UnstructuredPowerPointLoader, {}),
51
  ".pptx": (UnstructuredPowerPointLoader, {}),
52
  ".txt": (TextLoader, {"encoding": "utf8"}),
 
7
  EverNoteLoader,
8
  PDFMinerLoader,
9
  UnstructuredPDFLoader,
10
+ MathpixPDFLoader,
11
  TextLoader,
12
  UnstructuredEmailLoader,
13
  UnstructuredEPubLoader,
 
47
  ".md": (UnstructuredMarkdownLoader, {}),
48
  ".odt": (UnstructuredODTLoader, {}),
49
  #".pdf": (PDFMinerLoader, {}),
50
+ #".pdf": (UnstructuredPDFLoader, {}),
51
+ ".pdf": (MathpixPDFLoader, {}),
52
  ".ppt": (UnstructuredPowerPointLoader, {}),
53
  ".pptx": (UnstructuredPowerPointLoader, {}),
54
  ".txt": (TextLoader, {"encoding": "utf8"}),