ehristoforu
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -98,7 +98,6 @@ def generate(
|
|
98 |
output_type="pil",
|
99 |
).images
|
100 |
elif model == "Alpha inpaint":
|
101 |
-
print("Inpainting...")
|
102 |
blurred_mask = pipe_inpaint.mask_processor.blur(mask_image, blur_factor=blur_factor)
|
103 |
images = pipe_inpaint(
|
104 |
prompt=prompt,
|
@@ -114,7 +113,9 @@ def generate(
|
|
114 |
output_type="pil",
|
115 |
).images
|
116 |
|
117 |
-
|
|
|
|
|
118 |
|
119 |
|
120 |
|
@@ -246,6 +247,11 @@ with gr.Blocks(title="Visionix Playground", css=css) as demo:
|
|
246 |
],
|
247 |
fn=generate,
|
248 |
inputs=[
|
|
|
|
|
|
|
|
|
|
|
249 |
prompt,
|
250 |
negative_prompt,
|
251 |
use_negative_prompt,
|
|
|
98 |
output_type="pil",
|
99 |
).images
|
100 |
elif model == "Alpha inpaint":
|
|
|
101 |
blurred_mask = pipe_inpaint.mask_processor.blur(mask_image, blur_factor=blur_factor)
|
102 |
images = pipe_inpaint(
|
103 |
prompt=prompt,
|
|
|
113 |
output_type="pil",
|
114 |
).images
|
115 |
|
116 |
+
image_paths = [save_image(img) for img in images]
|
117 |
+
print(image_paths)
|
118 |
+
return image_paths, seed
|
119 |
|
120 |
|
121 |
|
|
|
247 |
],
|
248 |
fn=generate,
|
249 |
inputs=[
|
250 |
+
model,
|
251 |
+
inpaint_image,
|
252 |
+
mask_image,
|
253 |
+
blur_factor,
|
254 |
+
strength,
|
255 |
prompt,
|
256 |
negative_prompt,
|
257 |
use_negative_prompt,
|