Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,10 +35,10 @@ with texture_correct:
|
|
35 |
st.button("Texture Correct", on_click=click_button)
|
36 |
if st.session_state.clicked:
|
37 |
with st.spinner("Texture correcting🫡..."):
|
38 |
-
|
39 |
-
product_image_dim =
|
40 |
x_dim = product_image_dim[0]
|
41 |
-
y_dim = product_image_dim[
|
42 |
create_image_tile(product_image, x_dim, y_dim)
|
43 |
overlay = create_layover(generated_image, 'tiled_image.png', opacity)
|
44 |
create_image_cutout('lay_over_image.png', gen_image_mask)
|
|
|
35 |
st.button("Texture Correct", on_click=click_button)
|
36 |
if st.session_state.clicked:
|
37 |
with st.spinner("Texture correcting🫡..."):
|
38 |
+
product_image_n = Image.open(generated_image)
|
39 |
+
product_image_dim = product_image_n.size
|
40 |
x_dim = product_image_dim[0]
|
41 |
+
y_dim = product_image_dim[0]
|
42 |
create_image_tile(product_image, x_dim, y_dim)
|
43 |
overlay = create_layover(generated_image, 'tiled_image.png', opacity)
|
44 |
create_image_cutout('lay_over_image.png', gen_image_mask)
|