Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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:
|