Spaces:
Sleeping
Sleeping
Update src/pipelines/inpainting.py
Browse files
src/pipelines/inpainting.py
CHANGED
@@ -7,7 +7,7 @@ from diffusers import AutoPipelineForInpainting
|
|
7 |
|
8 |
inpaint_pipe = AutoPipelineForInpainting.from_pretrained(inpaint_model_path).to(torch_device)
|
9 |
|
10 |
-
@spaces.GPU(
|
11 |
def inpaint(dict, num_inference_steps, seed, prompt="", progress=gr.Progress()):
|
12 |
progress(0)
|
13 |
mask = dict["layers"][0].convert("RGB").resize((imageHeight, imageWidth))
|
|
|
7 |
|
8 |
inpaint_pipe = AutoPipelineForInpainting.from_pretrained(inpaint_model_path).to(torch_device)
|
9 |
|
10 |
+
@spaces.GPU()
|
11 |
def inpaint(dict, num_inference_steps, seed, prompt="", progress=gr.Progress()):
|
12 |
progress(0)
|
13 |
mask = dict["layers"][0].convert("RGB").resize((imageHeight, imageWidth))
|