Import Document from langchain_core instead of langchain
This commit is contained in:
parent
43e3baaa84
commit
866e820ecb
1 changed files with 4 additions and 2 deletions
|
|
@ -1,6 +1,8 @@
|
||||||
|
from typing import Dict, Optional
|
||||||
|
|
||||||
|
from langchain_core.documents import Document
|
||||||
|
|
||||||
from langflow import CustomComponent
|
from langflow import CustomComponent
|
||||||
from langchain.documents import Document
|
|
||||||
from typing import Optional, Dict
|
|
||||||
|
|
||||||
|
|
||||||
class SRTLoaderComponent(CustomComponent):
|
class SRTLoaderComponent(CustomComponent):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue