Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ accelerator = Accelerator(cpu=True)
|
|
7 |
|
8 |
pipe = accelerator.prepare(UniDiffuserPipeline.from_pretrained("thu-ml/unidiffuser-v1", torch_dtype=torch.bfloat16))
|
9 |
pipe = accelerator.prepare(pipe.to("cpu"))
|
10 |
-
|
11 |
def plex(image_url,stips):
|
12 |
init_image = load_image(image_url).resize((512, 512))
|
13 |
sample = pipe(image=init_image, num_inference_steps=stips, guidance_scale=8.0)
|
|
|
7 |
|
8 |
pipe = accelerator.prepare(UniDiffuserPipeline.from_pretrained("thu-ml/unidiffuser-v1", torch_dtype=torch.bfloat16))
|
9 |
pipe = accelerator.prepare(pipe.to("cpu"))
|
10 |
+
apol=[]
|
11 |
def plex(image_url,stips):
|
12 |
init_image = load_image(image_url).resize((512, 512))
|
13 |
sample = pipe(image=init_image, num_inference_steps=stips, guidance_scale=8.0)
|