Spaces:
Sleeping
Sleeping
Prgckwb
commited on
Commit
•
16ea9e8
1
Parent(s):
e32a3c2
init
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ else:
|
|
21 |
torch_dtype = torch.float32
|
22 |
device = "cpu"
|
23 |
|
24 |
-
pipelines = {model_id: DiffusionPipeline(model_id, device=device, dtype=torch_dtype) for model_id in model_ids}
|
25 |
|
26 |
@spaces.GPU()
|
27 |
def inference(
|
|
|
21 |
torch_dtype = torch.float32
|
22 |
device = "cpu"
|
23 |
|
24 |
+
pipelines = {model_id: DiffusionPipeline.from_pretrained(model_id, device=device, dtype=torch_dtype) for model_id in model_ids}
|
25 |
|
26 |
@spaces.GPU()
|
27 |
def inference(
|