Spaces:
Running
Running
Update app.py
Browse files
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(
|
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):
|