File size: 494 Bytes
a31ce15
9e7100a
a31ce15
c4186d9
c81cf2a
 
3cf8dc5
 
 
 
68f9cb7
9e7100a
3cf8dc5
68f9cb7
 
 
9e7100a
3cf8dc5
68f9cb7
3cf8dc5
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import streamlit as st
from  PIL import Image

file = st.file_uploader("Por favor suba una imagen de ropa", type=['jpg','png','jpeg'])
if file is not None:
    bytes_data = file.read()

    col1, col2, col3 = st.beta_columns([1,6,1])

    with col1:
        st.write("")
    
    with col2:
        image = Image.open(file)
        st.markdown('<p style="text-align: center;">Image</p>',unsafe_allow_html=True)
        st.image(image,width=300)  
    
    with col3:
        st.write("")