jeffh commited on
Commit
e9b50c0
1 Parent(s): c9a38e2

metadata function

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -17,6 +17,10 @@ def change_model(size):
17
  loaded_model = whisper.load_model(size)
18
  current_size = size
19
 
 
 
 
 
20
  title="Youtube Whisperer"
21
  description="Speech to text transcription of Youtube videos using OpenAI's Whisper"
22
  block = gr.Blocks()
 
17
  loaded_model = whisper.load_model(size)
18
  current_size = size
19
 
20
+ def populate_metadata(link):
21
+ yt = YouTube(link)
22
+ return yt.thumbnail_url, yt.title
23
+
24
  title="Youtube Whisperer"
25
  description="Speech to text transcription of Youtube videos using OpenAI's Whisper"
26
  block = gr.Blocks()