Added Clip dependency (#778)

This commit is contained in:
Rupesh Bansal
2023-10-10 00:32:45 +05:30
committed by GitHub
parent bc649b9a85
commit 19a9141c2d
4 changed files with 47 additions and 70 deletions

View File

@@ -128,7 +128,8 @@ def detect_datatype(source: Any) -> DataType:
formatted_source = format_source(str(source), 30)
if url:
from langchain.document_loaders.youtube import ALLOWED_NETLOCK as YOUTUBE_ALLOWED_NETLOCS
from langchain.document_loaders.youtube import \
ALLOWED_NETLOCK as YOUTUBE_ALLOWED_NETLOCS
if url.netloc in YOUTUBE_ALLOWED_NETLOCS:
logging.debug(f"Source of `{formatted_source}` detected as `youtube_video`.")