soujanyaporia commited on
Commit
c963e98
·
verified ·
1 Parent(s): 19964e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -226,11 +226,11 @@ class Mustango:
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
  # if torch.cuda.is_available():
235
  # mustango = Mustango()
236
  # else:
 
226
 
227
  # Initialize Mustango
228
  mustango = Mustango(device="cpu")
229
+ mustango.vae.to(device_selection)
230
+ mustango.stft.to(device_selection)
231
+ mustango.model.to(device_selection)
232
+ mustango.music_model.beats_model.to(device_selection)
233
+ mustango.music_model.chords_model.to(device_selection)
234
  # if torch.cuda.is_available():
235
  # mustango = Mustango()
236
  # else: