tiennlu commited on
Commit
0f28ae7
·
verified ·
1 Parent(s): 86bfb0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)