This commit is contained in:
pulipakaa24
2025-11-14 17:20:26 -06:00
parent e15b82a4a1
commit 057d51eb9b

View File

@@ -43,7 +43,7 @@ def upload_file():
data = np.asarray(pil_image) data = np.asarray(pil_image)
print(data.shape) print(data.shape)
data = data / np.max(data) data = data / 255.0
data = data.reshape(1,128,128,3) data = data.reshape(1,128,128,3)
prediction = model.predict(data)[0][0] prediction = model.predict(data)[0][0]
if prediction < 0.5: if prediction < 0.5: