Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ pipe = pipeline(
|
|
| 24 |
)
|
| 25 |
|
| 26 |
|
| 27 |
-
@spaces.GPU
|
| 28 |
def transcribe(inputs, task):
|
| 29 |
if inputs is None:
|
| 30 |
raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
|
|
@@ -72,7 +72,7 @@ def download_yt_audio(yt_url, filename):
|
|
| 72 |
except youtube_dl.utils.ExtractorError as err:
|
| 73 |
raise gr.Error(str(err))
|
| 74 |
|
| 75 |
-
@spaces.GPU
|
| 76 |
def yt_transcribe(yt_url, task, max_filesize=75.0):
|
| 77 |
html_embed_str = _return_yt_html_embed(yt_url)
|
| 78 |
|
|
|
|
| 24 |
)
|
| 25 |
|
| 26 |
|
| 27 |
+
@spaces.GPU(duration=120)
|
| 28 |
def transcribe(inputs, task):
|
| 29 |
if inputs is None:
|
| 30 |
raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
|
|
|
|
| 72 |
except youtube_dl.utils.ExtractorError as err:
|
| 73 |
raise gr.Error(str(err))
|
| 74 |
|
| 75 |
+
@spaces.GPU(duration=120)
|
| 76 |
def yt_transcribe(yt_url, task, max_filesize=75.0):
|
| 77 |
html_embed_str = _return_yt_html_embed(yt_url)
|
| 78 |
|