from transformers import pipeline
from PIL import Image
# Use a pipeline as a high-level helper
pipe = pipeline("image-classification", model="ayoubkirouane/VIT_Beans_Leaf_Disease_Classifier")
# Load the image
image_path = "Your image_path "
image = Image.open(image_path)
# Run inference using the pipeline
result = pipe(image)
# The result contains the predicted label and the corresponding score
predicted_label = result[0]['label']
confidence_score = result[0]['score']
print(f"Predicted Label: {predicted_label}")
print(f"Confidence Score: {confidence_score}")
Runs of ayoubkirouane VIT_Beans_Leaf_Disease_Classifier on huggingface.co
15
Total runs
0
24-hour runs
1
3-day runs
1
7-day runs
-1
30-day runs
More Information About VIT_Beans_Leaf_Disease_Classifier huggingface.co Model
More VIT_Beans_Leaf_Disease_Classifier license Visit here:
VIT_Beans_Leaf_Disease_Classifier huggingface.co is an AI model on huggingface.co that provides VIT_Beans_Leaf_Disease_Classifier's model effect (), which can be used instantly with this ayoubkirouane VIT_Beans_Leaf_Disease_Classifier model. huggingface.co supports a free trial of the VIT_Beans_Leaf_Disease_Classifier model, and also provides paid use of the VIT_Beans_Leaf_Disease_Classifier. Support call VIT_Beans_Leaf_Disease_Classifier model through api, including Node.js, Python, http.
VIT_Beans_Leaf_Disease_Classifier huggingface.co is an online trial and call api platform, which integrates VIT_Beans_Leaf_Disease_Classifier's modeling effects, including api services, and provides a free online trial of VIT_Beans_Leaf_Disease_Classifier, you can try VIT_Beans_Leaf_Disease_Classifier online for free by clicking the link below.
ayoubkirouane VIT_Beans_Leaf_Disease_Classifier online free url in huggingface.co:
VIT_Beans_Leaf_Disease_Classifier is an open source model from GitHub that offers a free installation service, and any user can find VIT_Beans_Leaf_Disease_Classifier on GitHub to install. At the same time, huggingface.co provides the effect of VIT_Beans_Leaf_Disease_Classifier install, users can directly use VIT_Beans_Leaf_Disease_Classifier installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
VIT_Beans_Leaf_Disease_Classifier install url in huggingface.co: