Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -16,6 +16,12 @@ subprocess.run(
|
|
16 |
check=True,
|
17 |
)
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
def patch_cuda():
|
20 |
if torch.cuda.is_available():
|
21 |
for i in range(torch.cuda.device_count()):
|
@@ -27,12 +33,6 @@ def patch_cuda():
|
|
27 |
|
28 |
patch_cuda()
|
29 |
|
30 |
-
import spaces
|
31 |
-
import torch
|
32 |
-
import torchaudio
|
33 |
-
import gradio as gr
|
34 |
-
from os import getenv
|
35 |
-
|
36 |
from zonos.model import Zonos
|
37 |
from zonos.conditioning import make_cond_dict, supported_language_codes
|
38 |
|
|
|
16 |
check=True,
|
17 |
)
|
18 |
|
19 |
+
import spaces
|
20 |
+
import torch
|
21 |
+
import torchaudio
|
22 |
+
import gradio as gr
|
23 |
+
from os import getenv
|
24 |
+
|
25 |
def patch_cuda():
|
26 |
if torch.cuda.is_available():
|
27 |
for i in range(torch.cuda.device_count()):
|
|
|
33 |
|
34 |
patch_cuda()
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
from zonos.model import Zonos
|
37 |
from zonos.conditioning import make_cond_dict, supported_language_codes
|
38 |
|