Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ if args.enable_model_cpu_offload:
|
|
38 |
else:
|
39 |
pipe = pipe.to("cuda")
|
40 |
|
41 |
-
@spaces.GPU
|
42 |
def infer(edit_images,
|
43 |
prompt,
|
44 |
seed=666,
|
@@ -82,7 +82,7 @@ def infer(edit_images,
|
|
82 |
width=width*2,
|
83 |
guidance_scale=guidance_scale,
|
84 |
num_inference_steps=num_inference_steps,
|
85 |
-
generator=torch.Generator(
|
86 |
).images[0]
|
87 |
|
88 |
w,h = image.size
|
|
|
38 |
else:
|
39 |
pipe = pipe.to("cuda")
|
40 |
|
41 |
+
# @spaces.GPU
|
42 |
def infer(edit_images,
|
43 |
prompt,
|
44 |
seed=666,
|
|
|
82 |
width=width*2,
|
83 |
guidance_scale=guidance_scale,
|
84 |
num_inference_steps=num_inference_steps,
|
85 |
+
generator=torch.Generator().manual_seed(seed),
|
86 |
).images[0]
|
87 |
|
88 |
w,h = image.size
|