hanshan1988 commited on
Commit
7fc7a15
·
verified ·
1 Parent(s): 3e94481

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -81,7 +81,7 @@ def youtube_transcript(url: str) -> str:
81
  """
82
  max_attempts = 5 # Set a maximum number of attempts
83
  attempts = 0
84
- loader = YoutubeLoader.from_youtube_url(url, add_video_info=False)
85
  while attempts < max_attempts:
86
  try:
87
  docs = loader.load()
 
81
  """
82
  max_attempts = 5 # Set a maximum number of attempts
83
  attempts = 0
84
+ loader = YoutubeLoader.from_youtube_url(url, add_video_info=True)
85
  while attempts < max_attempts:
86
  try:
87
  docs = loader.load()