vahidrezanezhad commited on
Commit
67022df
·
verified ·
1 Parent(s): a75241a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -15,8 +15,11 @@ def greet(image):
15
  prediction = model.predict(image.reshape(1,224,448,image.shape[2]))
16
  prediction = tf.squeeze(tf.round(prediction))
17
 
 
 
18
  print(prediction.shape)
19
 
 
20
  #print(model.summary())
21
  return "Hello "
22
 
 
15
  prediction = model.predict(image.reshape(1,224,448,image.shape[2]))
16
  prediction = tf.squeeze(tf.round(prediction))
17
 
18
+ prediction = np.argmax(prediction,axis=2)
19
+
20
  print(prediction.shape)
21
 
22
+
23
  #print(model.summary())
24
  return "Hello "
25