Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def predict(input_dict):
|
|
27 |
image = image.numpy().reshape(-1, 28, 28, 1)
|
28 |
|
29 |
# Predict
|
30 |
-
prediction =
|
31 |
probs = tf.nn.softmax(prediction[0]).numpy()
|
32 |
return {str(i): float(probs[i]) for i in range(10)}
|
33 |
|
|
|
27 |
image = image.numpy().reshape(-1, 28, 28, 1)
|
28 |
|
29 |
# Predict
|
30 |
+
prediction = model.predict(image)
|
31 |
probs = tf.nn.softmax(prediction[0]).numpy()
|
32 |
return {str(i): float(probs[i]) for i in range(10)}
|
33 |
|