lfernandopg commited on
Commit
cfe1092
1 Parent(s): 94c3608

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -13,16 +13,15 @@ if file is not None:
13
  x = np.array(Image.open(BytesIO(bytes_data)).convert('L'))
14
  x = x / 255.00
15
  x = np.expand_dims(x, axis=-1)
16
- print(x.shape)
17
  x = tf.image.resize(x, [80, 80])
18
- print(x.shape)
19
- x = np.repeat(x[:, :, np.newaxis], 3, axis=2)
20
- print(x.shape)
21
  plt.figure()
22
  plt.imshow(x, cmap=plt.cm.binary)
23
  plt.colorbar()
24
  plt.grid(False)
25
  plt.show()
 
 
 
26
 
27
  col1, col2, col3 = st.columns(3)
28
 
 
13
  x = np.array(Image.open(BytesIO(bytes_data)).convert('L'))
14
  x = x / 255.00
15
  x = np.expand_dims(x, axis=-1)
 
16
  x = tf.image.resize(x, [80, 80])
 
 
 
17
  plt.figure()
18
  plt.imshow(x, cmap=plt.cm.binary)
19
  plt.colorbar()
20
  plt.grid(False)
21
  plt.show()
22
+ x = np.repeat(x[:, :, np.newaxis], 3, axis=2)
23
+ x = np.squeeze(x)
24
+
25
 
26
  col1, col2, col3 = st.columns(3)
27