Spaces:
Sleeping
Sleeping
Update util.py
Browse files
util.py
CHANGED
@@ -37,7 +37,7 @@ def get_subtitles(video_url):
|
|
37 |
video_id = video_url.split("v=")[1]
|
38 |
transcript = YouTubeTranscriptApi.get_transcript(video_id, languages=['en'])
|
39 |
subs = " ".join(entry['text'] for entry in transcript)
|
40 |
-
print(
|
41 |
|
42 |
return transcript, subs
|
43 |
|
|
|
37 |
video_id = video_url.split("v=")[1]
|
38 |
transcript = YouTubeTranscriptApi.get_transcript(video_id, languages=['en'])
|
39 |
subs = " ".join(entry['text'] for entry in transcript)
|
40 |
+
print(subs)
|
41 |
|
42 |
return transcript, subs
|
43 |
|