alibayram commited on
Commit
1944562
·
1 Parent(s): fec34a0

Refactor prediction function: update logging to print composite image shape

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ model = tf.keras.models.load_model("./sketch_recognition_numbers_model.h5")
28
 
29
  # Prediction function for sketch recognition
30
  def predict(data):
31
- print(data.shape)
32
  # Reshape image to 28x28
33
  img = np.reshape(data['composite'], (1, img_size, img_size, 1))
34
  # Make prediction
 
28
 
29
  # Prediction function for sketch recognition
30
  def predict(data):
31
+ print(data['composite'].shape)
32
  # Reshape image to 28x28
33
  img = np.reshape(data['composite'], (1, img_size, img_size, 1))
34
  # Make prediction