dwb2023 commited on
Commit
68730d2
·
verified ·
1 Parent(s): 520f263

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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")