Spaces:
Runtime error
Runtime error
increase gpu duration
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ model = SeamlessM4Tv2Model.from_pretrained("facebook/seamless-m4t-v2-large").to(
|
|
47 |
# model = SeamlessM4TModel.from_pretrained("facebook/hf-seamless-m4t-medium").to(device)
|
48 |
|
49 |
|
50 |
-
@spaces.GPU(duration=
|
51 |
def predict(
|
52 |
task_name: str,
|
53 |
audio_source: str,
|
@@ -439,7 +439,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
439 |
)
|
440 |
|
441 |
if __name__ == "__main__":
|
442 |
-
|
443 |
# demo.queue(max_size=50).launch()
|
444 |
|
445 |
# Linking models to the space
|
|
|
47 |
# model = SeamlessM4TModel.from_pretrained("facebook/hf-seamless-m4t-medium").to(device)
|
48 |
|
49 |
|
50 |
+
@spaces.GPU(duration=60)
|
51 |
def predict(
|
52 |
task_name: str,
|
53 |
audio_source: str,
|
|
|
439 |
)
|
440 |
|
441 |
if __name__ == "__main__":
|
442 |
+
demo.launch(show_error=True)
|
443 |
# demo.queue(max_size=50).launch()
|
444 |
|
445 |
# Linking models to the space
|