Spaces:
Sleeping
Sleeping
File size: 286 Bytes
eb4d8be | 1 2 3 4 5 6 7 | from langchain_community.document_loaders import YoutubeLoader
def load_youtube_transcript(video_url: str):
"""Load YouTube video transcript as documents."""
loader = YoutubeLoader.from_youtube_url(video_url, add_video_info=False)
docs = loader.load()
return docs |