Spaces:
Runtime error
Runtime error
Commit
·
987de3d
1
Parent(s):
35203cd
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ model = tf.keras.models.load_model('modelo.h5')
|
|
| 10 |
file = st.file_uploader("Por favor suba una imagen de ropa (jpg, png, jpeg)", type=['jpg','png','jpeg'])
|
| 11 |
if file is not None:
|
| 12 |
bytes_data = file.read()
|
| 13 |
-
x = np.array(Image.open(BytesIO(bytes_data).convert('L'))
|
| 14 |
print(x.shape)
|
| 15 |
x = x / 255.00
|
| 16 |
plt.figure()
|
|
|
|
| 10 |
file = st.file_uploader("Por favor suba una imagen de ropa (jpg, png, jpeg)", type=['jpg','png','jpeg'])
|
| 11 |
if file is not None:
|
| 12 |
bytes_data = file.read()
|
| 13 |
+
x = np.array(Image.open(BytesIO(bytes_data)).convert('L'))
|
| 14 |
print(x.shape)
|
| 15 |
x = x / 255.00
|
| 16 |
plt.figure()
|