Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -54,6 +54,7 @@ def download_yt_audio(yt_url, filename):
|
|
54 |
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
|
55 |
ydl.download([yt_url])
|
56 |
|
|
|
57 |
def yt_transcribe(yt_url, task):
|
58 |
with tempfile.TemporaryDirectory() as tmpdirname:
|
59 |
filepath = os.path.join(tmpdirname, "video.mp4")
|
|
|
54 |
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
|
55 |
ydl.download([yt_url])
|
56 |
|
57 |
+
@spaces.GPU
|
58 |
def yt_transcribe(yt_url, task):
|
59 |
with tempfile.TemporaryDirectory() as tmpdirname:
|
60 |
filepath = os.path.join(tmpdirname, "video.mp4")
|