Spaces:
Running
on
Zero
Running
on
Zero
Jagrut Thakare
commited on
Commit
·
b36845a
1
Parent(s):
300fcc7
v2.0
Browse files
app.py
CHANGED
@@ -16,6 +16,9 @@ def process_image(image, mask, progress=gr.Progress(track_tqdm=True)):
|
|
16 |
output = process_inpaint(image["background"], image["layers"][0])
|
17 |
else:
|
18 |
print("Processing Received Mask")
|
|
|
|
|
|
|
19 |
output = process_inpaint(image["background"], mask["background"])
|
20 |
img_output = Image.fromarray(output).convert("RGB")
|
21 |
|
@@ -34,4 +37,4 @@ with gr.Blocks() as demo:
|
|
34 |
output = gr.Image(format="png", label="Output Image")
|
35 |
button.click(fn=process_image, inputs=[image, mask], outputs=[output])
|
36 |
|
37 |
-
demo.launch(debug=True)
|
|
|
16 |
output = process_inpaint(image["background"], image["layers"][0])
|
17 |
else:
|
18 |
print("Processing Received Mask")
|
19 |
+
print("Mask Background shape", mask["background"].shape)
|
20 |
+
print("Mask : ", mask)
|
21 |
+
print("Mask : ", mask["background"])
|
22 |
output = process_inpaint(image["background"], mask["background"])
|
23 |
img_output = Image.fromarray(output).convert("RGB")
|
24 |
|
|
|
37 |
output = gr.Image(format="png", label="Output Image")
|
38 |
button.click(fn=process_image, inputs=[image, mask], outputs=[output])
|
39 |
|
40 |
+
demo.launch(debug=True,show_error=True)
|