anzorq commited on
Commit
14f36e9
1 Parent(s): 7366696

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -42,7 +42,8 @@ def transcribe_from_youtube(url):
42
  return transcription
43
 
44
  def populate_metadata(url):
45
- return YouTube(url).thumbnail_url, yt.title
 
46
 
47
  with gr.Blocks(theme=gr.themes.Soft()) as demo:
48
  gr.HTML(
 
42
  return transcription
43
 
44
  def populate_metadata(url):
45
+ yt = YouTube(url)
46
+ return yt.thumbnail_url, yt.title
47
 
48
  with gr.Blocks(theme=gr.themes.Soft()) as demo:
49
  gr.HTML(