Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -226,11 +226,11 @@ class Mustango:
|
|
226 |
|
227 |
# Initialize Mustango
|
228 |
mustango = Mustango(device="cpu")
|
229 |
-
mustango.vae.to(
|
230 |
-
mustango.stft.to(
|
231 |
-
mustango.model.to(
|
232 |
-
mustango.music_model.beats_model.to(
|
233 |
-
mustango.music_model.chords_model.to(
|
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:
|