JaMugen commited on
Commit
55586af
·
1 Parent(s): 365ccac

Update Milestone5API.py

Browse files
Files changed (1) hide show
  1. Milestone5API.py +1 -1
Milestone5API.py CHANGED
@@ -100,7 +100,7 @@ def download_video_transcript(video_url, target_lang='fr'):
100
 
101
  for lang in ['en', 'auto']:
102
  try:
103
- transcript = transcript_list.find_transcript([lang])
104
  break # Stop if found
105
  except Exception as e:
106
  continue
 
100
 
101
  for lang in ['en', 'auto']:
102
  try:
103
+ transcript = transcript_list.find_generated_transcript([source_lang]).fetch()
104
  break # Stop if found
105
  except Exception as e:
106
  continue