Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ if uploaded_file is not None:
|
|
41 |
|
42 |
with st.expander("Original photo", expanded=True):
|
43 |
if uploaded_file is not None:
|
44 |
-
st.image(uploaded_file, width=
|
45 |
else:
|
46 |
st.warning("You haven't uploaded any photo yet")
|
47 |
|
@@ -65,7 +65,7 @@ if uploaded_file is not None:
|
|
65 |
img_output = change_background(img_input, img_matte, background_alpha=alpha, background_hex=hexmap[in_mode])
|
66 |
|
67 |
with st.expander("Success!", expanded=True):
|
68 |
-
st.image(img_output)
|
69 |
uploaded_name = os.path.splitext(uploaded_file.name)[0]
|
70 |
image_download_button(
|
71 |
pil_image=img_output,
|
|
|
41 |
|
42 |
with st.expander("Original photo", expanded=True):
|
43 |
if uploaded_file is not None:
|
44 |
+
st.image(uploaded_file, width=40)
|
45 |
else:
|
46 |
st.warning("You haven't uploaded any photo yet")
|
47 |
|
|
|
65 |
img_output = change_background(img_input, img_matte, background_alpha=alpha, background_hex=hexmap[in_mode])
|
66 |
|
67 |
with st.expander("Success!", expanded=True):
|
68 |
+
st.image(img_output, width=40)
|
69 |
uploaded_name = os.path.splitext(uploaded_file.name)[0]
|
70 |
image_download_button(
|
71 |
pil_image=img_output,
|