Spaces:
Runtime error
Runtime error
captain-awesome
commited on
Commit
•
171be63
1
Parent(s):
69d0bef
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ from langchain.schema import Document
|
|
50 |
import gradio as gr
|
51 |
import tempfile
|
52 |
|
53 |
-
|
54 |
".csv": (CSVLoader, {"encoding": "utf-8"}),
|
55 |
".doc": (UnstructuredWordDocumentLoader, {}),
|
56 |
".docx": (UnstructuredWordDocumentLoader, {}),
|
|
|
50 |
import gradio as gr
|
51 |
import tempfile
|
52 |
|
53 |
+
FILE_LOADER_MAPPING = {
|
54 |
".csv": (CSVLoader, {"encoding": "utf-8"}),
|
55 |
".doc": (UnstructuredWordDocumentLoader, {}),
|
56 |
".docx": (UnstructuredWordDocumentLoader, {}),
|