Skip to content

Instantly share code, notes, and snippets.

@Sachin-crypto
Created December 18, 2022 08:40
Embed
What would you like to do?
# 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