hungchiayu1
commited on
Commit
•
ee5f368
1
Parent(s):
31fe691
fix
Browse files
app.py
CHANGED
@@ -68,11 +68,11 @@ class Tango:
|
|
68 |
return list(self.chunks(outputs, samples))
|
69 |
|
70 |
# Initialize TANGO
|
71 |
-
if torch.cuda.is_available():
|
72 |
-
tango = Tango()
|
73 |
-
else:
|
74 |
-
tango = Tango(device="cpu")
|
75 |
|
|
|
|
|
|
|
|
|
76 |
|
77 |
@spaces.GPU(duration=60)
|
78 |
def gradio_generate(prompt, steps, guidance):
|
|
|
68 |
return list(self.chunks(outputs, samples))
|
69 |
|
70 |
# Initialize TANGO
|
|
|
|
|
|
|
|
|
71 |
|
72 |
+
tango = Tango(device="cpu")
|
73 |
+
tango.vae.to("cuda")
|
74 |
+
tango.stft.to("cuda")
|
75 |
+
tango.model.to("cuda")
|
76 |
|
77 |
@spaces.GPU(duration=60)
|
78 |
def gradio_generate(prompt, steps, guidance):
|