Skip to content

Instantly share code, notes, and snippets.

@Sachin-crypto
Created December 18, 2022 08:40
Show Gist options
  • Save Sachin-crypto/5b96685b2bc4681b77525abae6590122 to your computer and use it in GitHub Desktop.
Save Sachin-crypto/5b96685b2bc4681b77525abae6590122 to your computer and use it in GitHub Desktop.
# Function to display and predicting the Image
def display_and_predict(img_path_input):
display_img = Image.open(img_path_input)
plt.imshow(display_img)
plt.show()
img = preprocess_img(img_path_input)
pred = predict_result(img)
print("Prediction: ", pred)
@Bigmilw789
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment