Spaces:
Running
Running
Update models.py
Browse files
models.py
CHANGED
@@ -632,7 +632,7 @@ class AudioLDM2Wrapper(PipelineWrapper):
|
|
632 |
return self
|
633 |
|
634 |
|
635 |
-
def load_model(model_id, device,
|
636 |
ldm_stable = AudioLDM2Wrapper(model_id=model_id, device=device, double_precision=double_precision)
|
637 |
ldm_stable.load_scheduler()
|
638 |
torch.cuda.empty_cache()
|
|
|
632 |
return self
|
633 |
|
634 |
|
635 |
+
def load_model(model_id, device, double_precision=False):
|
636 |
ldm_stable = AudioLDM2Wrapper(model_id=model_id, device=device, double_precision=double_precision)
|
637 |
ldm_stable.load_scheduler()
|
638 |
torch.cuda.empty_cache()
|