Spaces:
Runtime error
Runtime error
Commit
·
9e7100a
1
Parent(s):
c4186d9
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,11 @@
|
|
| 1 |
import streamlit as st
|
|
|
|
| 2 |
|
| 3 |
file = st.file_uploader("Por favor suba una imagen de ropa", type=['jpg','png','jpeg'])
|
| 4 |
if file is not None:
|
| 5 |
bytes_data = file.read()
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
from PIL import Image
|
| 3 |
|
| 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 |
+
|