Update app.py
Browse files
app.py
CHANGED
@@ -226,7 +226,7 @@ def get_video_id(youtube_url):
|
|
226 |
|
227 |
def get_transcript(video_id):
|
228 |
tran = []
|
229 |
-
transcript = YouTubeTranscriptApi.get_transcript(video_id)
|
230 |
print(transcript)
|
231 |
tran += [t['text'] for t in transcript if t['text'] != '[music]']
|
232 |
return ' '.join(tran)
|
|
|
226 |
|
227 |
def get_transcript(video_id):
|
228 |
tran = []
|
229 |
+
transcript = YouTubeTranscriptApi.get_transcript(video_id,languages=['en'])
|
230 |
print(transcript)
|
231 |
tran += [t['text'] for t in transcript if t['text'] != '[music]']
|
232 |
return ' '.join(tran)
|