alibayram commited on
Commit
095137d
·
1 Parent(s): 855db0d

Refactor predict function: remove image shape from debug output for non-zero values

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,7 +40,7 @@ def predict(data):
40
  img = np.array(data['composite'])
41
 
42
  # print non-zero values
43
- print("non-zero values", np.count_nonzero(img), img.shape)
44
  for i in range(img.shape[0]):
45
  for j in range(img.shape[1]):
46
  if img[i][j] > 0:
 
40
  img = np.array(data['composite'])
41
 
42
  # print non-zero values
43
+ print("non-zero values", np.count_nonzero(img))
44
  for i in range(img.shape[0]):
45
  for j in range(img.shape[1]):
46
  if img[i][j] > 0: