hungchiayu commited on
Commit
0794579
1 Parent(s): 515a050

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -238,17 +238,17 @@ class Tango:
238
  # Initialize TANGO
239
 
240
  tango = Tango(device="cpu")
241
-
 
 
 
242
  pipe = Tango2Pipeline(vae=tango.vae,
243
  text_encoder=tango.model.text_encoder,
244
  tokenizer=tango.model.tokenizer,
245
  unet=tango.model.unet,
246
  scheduler=tango.scheduler
247
  )
248
- pipe.to(device_type)
249
- #tango.vae.to(device_type)
250
- #tango.stft.to(device_type)
251
- #tango.model.to(device_type)
252
 
253
  @spaces.GPU(duration=60)
254
  def gradio_generate(prompt, output_format, steps, guidance):
 
238
  # Initialize TANGO
239
 
240
  tango = Tango(device="cpu")
241
+ tango.vae.to(device_type)
242
+ tango.stft.to(device_type)
243
+ tango.model.to(device_type)
244
+
245
  pipe = Tango2Pipeline(vae=tango.vae,
246
  text_encoder=tango.model.text_encoder,
247
  tokenizer=tango.model.tokenizer,
248
  unet=tango.model.unet,
249
  scheduler=tango.scheduler
250
  )
251
+
 
 
 
252
 
253
  @spaces.GPU(duration=60)
254
  def gradio_generate(prompt, output_format, steps, guidance):