manasajanj commited on
Commit
3e740c8
·
verified ·
1 Parent(s): a8547eb

update tools.py

Browse files
Files changed (1) hide show
  1. tools.py +2 -2
tools.py CHANGED
@@ -21,13 +21,13 @@ def get_current_year() -> str:
21
  return str(datetime.now().year)
22
  @tool
23
  def get_youtube_transcript(url: str) -> str:
24
- """"""
25
  Get the full transcript/subtitles from a YouTube video.
26
  Use this tool whenever the question contains a YouTube URL (youtube.com or youtu.be).
27
  Extract the URL from the question and pass it as the argument.
28
  Example: if question says 'In the video https://www.youtube.com/watch?v=ABC123, what...'
29
  then call this tool with url='https://www.youtube.com/watch?v=ABC123'
30
- """"""
31
  try:
32
  from youtube_transcript_api import YouTubeTranscriptApi
33
  if "v=" in url:
 
21
  return str(datetime.now().year)
22
  @tool
23
  def get_youtube_transcript(url: str) -> str:
24
+ """
25
  Get the full transcript/subtitles from a YouTube video.
26
  Use this tool whenever the question contains a YouTube URL (youtube.com or youtu.be).
27
  Extract the URL from the question and pass it as the argument.
28
  Example: if question says 'In the video https://www.youtube.com/watch?v=ABC123, what...'
29
  then call this tool with url='https://www.youtube.com/watch?v=ABC123'
30
+ """
31
  try:
32
  from youtube_transcript_api import YouTubeTranscriptApi
33
  if "v=" in url: