Update app.py
Browse files
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=
|
| 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()
|