dwb2023 commited on
Commit
c5ddbf5
·
verified ·
1 Parent(s): 592b794

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,7 +35,7 @@ scheduler = CommitScheduler(
35
  path_in_repo="data",
36
  )
37
 
38
- @spaces.GPU
39
  @lru_cache(maxsize=10)
40
  def transcribe_audio(inputs, task):
41
  if inputs is None:
@@ -58,7 +58,7 @@ def download_yt_audio(yt_url, filename):
58
  with youtube_dl.YoutubeDL(ydl_opts) as ydl:
59
  ydl.download([yt_url])
60
 
61
- @spaces.GPU
62
  @lru_cache(maxsize=10)
63
  def yt_transcribe(yt_url, task):
64
  with tempfile.TemporaryDirectory() as tmpdirname:
 
35
  path_in_repo="data",
36
  )
37
 
38
+ @spaces.GPU(duration=120)
39
  @lru_cache(maxsize=10)
40
  def transcribe_audio(inputs, task):
41
  if inputs is None:
 
58
  with youtube_dl.YoutubeDL(ydl_opts) as ydl:
59
  ydl.download([yt_url])
60
 
61
+ @spaces.GPU(duration=120)
62
  @lru_cache(maxsize=10)
63
  def yt_transcribe(yt_url, task):
64
  with tempfile.TemporaryDirectory() as tmpdirname: