From 281a60525e28da517d2fe102acc8ee0d45cdcadb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Karakulak?= <32600733+RenkliKup@users.noreply.github.com> Date: Fri, 24 Sep 2021 17:16:34 +0300 Subject: [PATCH] changed img to image variable name --- gcp/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcp/main.py b/gcp/main.py index e12ddd1..adceb53 100644 --- a/gcp/main.py +++ b/gcp/main.py @@ -42,7 +42,7 @@ def predict(request): image = image/255 # normalize the image in 0 to 1 range - img_array = tf.expand_dims(img, 0) + img_array = tf.expand_dims(image, 0) predictions = model.predict(img_array) print("Predictions:",predictions)