Lookimi commited on
Commit
80f4a7d
1 Parent(s): 4dd6112

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -46,7 +46,8 @@ import gradio as gr
46
  #check if the transcript is available for download
47
  if(len(transcript_download_link) > 0):
48
  #download the transcript
49
- file_name = "Transcripts/" + link[9:] + ".xml"
 
50
  download_url = 'http://www.youtube.com'+transcript_download_link[0]
51
  urllib.request.urlretrieve(download_url, file_name)
52
  print("Downloading transcript for video " + link[9:] + "...")
 
46
  #check if the transcript is available for download
47
  if(len(transcript_download_link) > 0):
48
  #download the transcript
49
+ # file_name = "Transcripts/" + link[9:] + ".xml"
50
+ file_name = link[9:] + ".xml"
51
  download_url = 'http://www.youtube.com'+transcript_download_link[0]
52
  urllib.request.urlretrieve(download_url, file_name)
53
  print("Downloading transcript for video " + link[9:] + "...")