mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-17 16:39:52 +00:00
Apply patch [skip ci]
This commit is contained in:
parent
4e70c7aee9
commit
35d7639c81
@ -19,7 +19,10 @@ class SentenceTransformersTokenTextSplitter(TextSplitter):
|
|||||||
super().__init__(**kwargs, chunk_overlap=chunk_overlap)
|
super().__init__(**kwargs, chunk_overlap=chunk_overlap)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from transformers import AutoConfig, AutoTokenizer # type: ignore[attr-defined]
|
from transformers import ( # type: ignore[attr-defined]
|
||||||
|
AutoConfig,
|
||||||
|
AutoTokenizer,
|
||||||
|
)
|
||||||
except ImportError:
|
except ImportError:
|
||||||
msg = (
|
msg = (
|
||||||
"Could not import transformers python package. "
|
"Could not import transformers python package. "
|
||||||
|
Loading…
Reference in New Issue
Block a user