Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ def get_text_from_youtube_link(video_link,max_video_length=800):
|
|
| 41 |
print(video_text)
|
| 42 |
return video_text[0:max_video_length]
|
| 43 |
else:
|
| 44 |
-
print(
|
| 45 |
return video_text
|
| 46 |
|
| 47 |
def process_documents(documents,data_chunk=1500,chunk_overlap=100):
|
|
|
|
| 41 |
print(video_text)
|
| 42 |
return video_text[0:max_video_length]
|
| 43 |
else:
|
| 44 |
+
print("SRT might be disabled for the video . Uunable to get SRT")
|
| 45 |
return video_text
|
| 46 |
|
| 47 |
def process_documents(documents,data_chunk=1500,chunk_overlap=100):
|