Fabrice-TIERCELIN commited on
Commit
6cf3804
1 Parent(s): 0353aff
Files changed (1) hide show
  1. app.py +4 -4
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="cuda:0"):
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("cuda")
74
- tango.stft.to("cuda")
75
- tango.model.to("cuda")
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):