Spaces:
Running
on
Zero
Running
on
Zero
MohamedRashad
commited on
Commit
·
797f415
1
Parent(s):
b2b8bd5
chore: Update GPU duration in app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ pipe = pipeline(
|
|
27 |
device=device,
|
28 |
)
|
29 |
|
30 |
-
@spaces.GPU(120)
|
31 |
def transcribe(inputs):
|
32 |
if inputs is None:
|
33 |
raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
|
@@ -70,7 +70,7 @@ def chunks_to_subtitle(chunks):
|
|
70 |
subtitle += f"{start} --> {end}\n{text}\n\n"
|
71 |
return subtitle
|
72 |
|
73 |
-
@spaces.GPU(120)
|
74 |
def yt_transcribe(yt_url):
|
75 |
html_embed_str = _return_yt_html_embed(yt_url)
|
76 |
|
@@ -139,4 +139,4 @@ yt_transcribe_demo = gr.Interface(
|
|
139 |
with demo:
|
140 |
gr.TabbedInterface([mf_transcribe, file_transcribe, yt_transcribe_demo], ["Microphone", "Audio file", "YouTube"])
|
141 |
|
142 |
-
demo.queue().launch(
|
|
|
27 |
device=device,
|
28 |
)
|
29 |
|
30 |
+
@spaces.GPU(duration=120)
|
31 |
def transcribe(inputs):
|
32 |
if inputs is None:
|
33 |
raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
|
|
|
70 |
subtitle += f"{start} --> {end}\n{text}\n\n"
|
71 |
return subtitle
|
72 |
|
73 |
+
@spaces.GPU(duration=120)
|
74 |
def yt_transcribe(yt_url):
|
75 |
html_embed_str = _return_yt_html_embed(yt_url)
|
76 |
|
|
|
139 |
with demo:
|
140 |
gr.TabbedInterface([mf_transcribe, file_transcribe, yt_transcribe_demo], ["Microphone", "Audio file", "YouTube"])
|
141 |
|
142 |
+
demo.queue().launch()
|