Spaces:
Runtime error
Runtime error
Fabrice-TIERCELIN
commited on
Commit
•
6cf3804
1
Parent(s):
0353aff
CPU
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ from gradio import Markdown
|
|
11 |
import spaces
|
12 |
|
13 |
class Tango:
|
14 |
-
def __init__(self, name="declare-lab/tango2", device="
|
15 |
|
16 |
path = snapshot_download(repo_id=name)
|
17 |
|
@@ -70,9 +70,9 @@ class Tango:
|
|
70 |
# Initialize TANGO
|
71 |
|
72 |
tango = Tango(device="cpu")
|
73 |
-
tango.vae.to("
|
74 |
-
tango.stft.to("
|
75 |
-
tango.model.to("
|
76 |
|
77 |
@spaces.GPU(duration=60)
|
78 |
def gradio_generate(prompt, steps, guidance):
|
|
|
11 |
import spaces
|
12 |
|
13 |
class Tango:
|
14 |
+
def __init__(self, name="declare-lab/tango2", device="cpu"):
|
15 |
|
16 |
path = snapshot_download(repo_id=name)
|
17 |
|
|
|
70 |
# Initialize TANGO
|
71 |
|
72 |
tango = Tango(device="cpu")
|
73 |
+
tango.vae.to("cpu")
|
74 |
+
tango.stft.to("cpu")
|
75 |
+
tango.model.to("cpu")
|
76 |
|
77 |
@spaces.GPU(duration=60)
|
78 |
def gradio_generate(prompt, steps, guidance):
|