Spaces:
Runtime error
Runtime error
metadata function
Browse files
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()
|