Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,7 @@
|
|
1 |
import os, torch, torchaudio, gradio as gr
|
|
|
|
|
|
|
2 |
from zonos.model import Zonos
|
3 |
from zonos.conditioning import make_cond_dict, supported_language_codes
|
4 |
|
@@ -26,7 +29,7 @@ def _patch_cuda_props():
|
|
26 |
|
27 |
_patch_cuda_props()
|
28 |
|
29 |
-
|
30 |
def generate_audio(
|
31 |
text,
|
32 |
language,
|
|
|
1 |
import os, torch, torchaudio, gradio as gr
|
2 |
+
|
3 |
+
import spaces
|
4 |
+
|
5 |
from zonos.model import Zonos
|
6 |
from zonos.conditioning import make_cond_dict, supported_language_codes
|
7 |
|
|
|
29 |
|
30 |
_patch_cuda_props()
|
31 |
|
32 |
+
@spaces.GPU
|
33 |
def generate_audio(
|
34 |
text,
|
35 |
language,
|