Spaces:
Running
on
L40S
Running
on
L40S
updated
Browse files
app.py
CHANGED
@@ -115,8 +115,7 @@ def load_original_model():
|
|
115 |
model = HFMusicgenForConditionalGeneration.from_pretrained(
|
116 |
"facebook/musicgen-large",
|
117 |
torch_dtype=torch.float16,
|
118 |
-
|
119 |
-
)
|
120 |
|
121 |
model.eval()
|
122 |
|
|
|
115 |
model = HFMusicgenForConditionalGeneration.from_pretrained(
|
116 |
"facebook/musicgen-large",
|
117 |
torch_dtype=torch.float16,
|
118 |
+
).to(device)
|
|
|
119 |
|
120 |
model.eval()
|
121 |
|