Spaces:
Runtime error
Runtime error
Commit ·
3cf8dc5
1
Parent(s): 9e7100a
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,8 +4,18 @@ from PIL import Image
|
|
| 4 |
file = st.file_uploader("Por favor suba una imagen de ropa", type=['jpg','png','jpeg'])
|
| 5 |
if file is not None:
|
| 6 |
bytes_data = file.read()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
|
|
|
| 8 |
image = Image.open(file)
|
| 9 |
st.markdown('<p style="text-align: center;">Image</p>',unsafe_allow_html=True)
|
| 10 |
st.image(image,width=300)
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
file = st.file_uploader("Por favor suba una imagen de ropa", type=['jpg','png','jpeg'])
|
| 5 |
if file is not None:
|
| 6 |
bytes_data = file.read()
|
| 7 |
+
|
| 8 |
+
col1, col2, col3 = st.beta_columns([1,6,1])
|
| 9 |
+
|
| 10 |
+
with col1:
|
| 11 |
+
st.write("")
|
| 12 |
|
| 13 |
+
with col2:
|
| 14 |
image = Image.open(file)
|
| 15 |
st.markdown('<p style="text-align: center;">Image</p>',unsafe_allow_html=True)
|
| 16 |
st.image(image,width=300)
|
| 17 |
|
| 18 |
+
with col3:
|
| 19 |
+
st.write("")
|
| 20 |
+
|
| 21 |
+
|