Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ import os, random, gc
|
|
10 |
import numpy as np
|
11 |
from accelerate import Accelerator
|
12 |
accelerator = Accelerator(cpu=True)
|
13 |
-
pipe = accelerator.prepare(AmusedPipeline.from_pretrained("amused/amused-512", variant=
|
14 |
pipe.vqvae.to(torch.float32)
|
15 |
pipe = pipe.to("cpu")
|
16 |
def plex(prompt):
|
|
|
10 |
import numpy as np
|
11 |
from accelerate import Accelerator
|
12 |
accelerator = Accelerator(cpu=True)
|
13 |
+
pipe = accelerator.prepare(AmusedPipeline.from_pretrained("amused/amused-512", variant=None, torch_dtype=torch.float32, use_safetensors=True))
|
14 |
pipe.vqvae.to(torch.float32)
|
15 |
pipe = pipe.to("cpu")
|
16 |
def plex(prompt):
|