Spaces:
Runtime error
Runtime error
Commit
·
3cfee55
1
Parent(s):
e7b2bab
Update app.py
Browse files
app.py
CHANGED
@@ -95,7 +95,8 @@ if __name__ == "__main__":
|
|
95 |
canvas = make_canvas(image)
|
96 |
|
97 |
if st.button("Inpaint"):
|
98 |
-
|
|
|
99 |
result = inpainting(image, mask_image, prompt, negative_prompt)
|
100 |
else:
|
101 |
result = None
|
|
|
95 |
canvas = make_canvas(image)
|
96 |
|
97 |
if st.button("Inpaint"):
|
98 |
+
st.write("Inpainting!")
|
99 |
+
mask_image = get_mask(np.array(canvas.image_data))
|
100 |
result = inpainting(image, mask_image, prompt, negative_prompt)
|
101 |
else:
|
102 |
result = None
|