AI-RESEARCHER-2024 commited on
Commit
0734f11
·
verified ·
1 Parent(s): c4e208d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ for digit in range(10):
20
  idx = np.where(y_test == digit)[0][0]
21
  mnist_examples.append([x_test[idx]])
22
  # Resize the examples to 100 by 100
23
- mnist_examples = [[cv2.resize(x_test[i], DIMS)] for i in range(10)]
24
 
25
  # Function to preprocess the image
26
  def preprocess_image(image):
 
20
  idx = np.where(y_test == digit)[0][0]
21
  mnist_examples.append([x_test[idx]])
22
  # Resize the examples to 100 by 100
23
+ mnist_examples = [[cv2.resize(example[0], DIMS)] for example in mnist_examples]
24
 
25
  # Function to preprocess the image
26
  def preprocess_image(image):