proyecto-final / app.py
lfernandopg's picture
Update app.py
68f9cb7
raw
history blame
494 Bytes
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("")