soujanyaporia commited on
Commit
cfc99ed
1 Parent(s): b59693e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -225,19 +225,19 @@ class Mustango:
225
 
226
 
227
  # Initialize Mustango
228
- # mustango = Mustango(device="cpu")
229
- # mustango.vae.to(device_type)
230
- # mustango.stft.to(device_type)
231
- # mustango.model.to(device_type)
232
- # mustango.music_model.beats_model.to(device_type)
233
- # mustango.music_model.chords_model.to(device_type)
234
 
235
  # if torch.cuda.is_available():
236
  # mustango = Mustango(device=device_selection)
237
  # else:
238
  # mustango = Mustango(device="CPU")
239
 
240
- mustango = Mustango(device=device_selection)
241
 
242
  mustango.model.device = device_selection
243
 
 
225
 
226
 
227
  # Initialize Mustango
228
+ mustango = Mustango(device="cpu")
229
+ mustango.vae.to(device_type)
230
+ mustango.stft.to(device_type)
231
+ mustango.model.to(device_type)
232
+ mustango.music_model.beats_model.to(device_type)
233
+ mustango.music_model.chords_model.to(device_type)
234
 
235
  # if torch.cuda.is_available():
236
  # mustango = Mustango(device=device_selection)
237
  # else:
238
  # mustango = Mustango(device="CPU")
239
 
240
+ # mustango = Mustango(device=device_selection)
241
 
242
  mustango.model.device = device_selection
243