Spaces:
Runtime error
Runtime error
File size: 273 Bytes
ceba3d2 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import streamlit as st
from PIL import Image
my_upload = st.sidebar.file_uploader("Cargar una imagen", type=["png", "jpg", "jpeg"])
def mostrar_imagen(imagen):
image = Image.open(my_upload)
st.image(image)
if my_upload is not None:
mostrar_imagen(my_upload)
|