Luigi D'Addona commited on
Commit
bc6267b
·
1 Parent(s): cd0253f

corretta invocazione a YoutubeLoader

Browse files
Files changed (1) hide show
  1. tools.py +1 -1
tools.py CHANGED
@@ -322,7 +322,7 @@ def get_youtube_transcript(url: str) -> str:
322
  """
323
  Fetches the transcript from a YouTube video URL and returns it as plain text.
324
  """
325
- loader = YouTubeLoader.from_youtube_url(url, add_video_info=True)
326
  docs = loader.load()
327
 
328
  # Combine all transcript chunks into a single string
 
322
  """
323
  Fetches the transcript from a YouTube video URL and returns it as plain text.
324
  """
325
+ loader = YoutubeLoader.from_youtube_url(url, add_video_info=True)
326
  docs = loader.load()
327
 
328
  # Combine all transcript chunks into a single string