Update dependencies for fast installation (#811)

This commit is contained in:
Sidharth Mohanty
2023-10-17 20:51:30 +05:30
committed by GitHub
parent c336292346
commit 413b107b9a
9 changed files with 73 additions and 24 deletions

View File

@@ -1,7 +1,11 @@
import hashlib
from langchain.document_loaders import UnstructuredXMLLoader
try:
from langchain.document_loaders import UnstructuredXMLLoader
except ImportError:
raise ImportError(
'XML file requires extra dependencies. Install with `pip install --upgrade "embedchain[dataloaders]"`'
) from None
from embedchain.helper.json_serializable import register_deserializable
from embedchain.loaders.base_loader import BaseLoader
from embedchain.utils import clean_string