KhadijaAsehnoune12 commited on
Commit
17ae7fe
1 Parent(s): 00b5ecc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ from transformers import ViTFeatureExtractor, ViTForImageClassification
4
  from PIL import Image
5
 
6
  # Define the model and feature extractor
7
- model_name = "KhadijaAsehnoune12/OrangeLeafDiseaseDetector"
8
  model = ViTForImageClassification.from_pretrained(model_name, num_labels=10, ignore_mismatched_sizes=True)
9
  feature_extractor = ViTFeatureExtractor.from_pretrained(model_name)
10
 
@@ -51,4 +51,4 @@ gr.Interface(fn=predict,
51
  outputs="text",
52
  title="Citrus Disease Classification",
53
  description="Upload an image of a citrus leaf to classify its disease. The model is trained on the following diseases: Aleurocanthus spiniferus, Chancre citrique, Cochenille blanche, Dépérissement des agrumes, Feuille saine, Jaunissement des feuilles, Maladie de l'oïdium, Maladie du dragon jaune, Mineuse des agrumes, Trou de balle.",
54
- examples=["maladie_du_dragon_jaune.jpg", "mineuse_des_agrumes.jpg"]).launch(share=True)
 
4
  from PIL import Image
5
 
6
  # Define the model and feature extractor
7
+ model_name = "KhadijaAsehnoune12/LeafDiseaseDetectorForOranges"
8
  model = ViTForImageClassification.from_pretrained(model_name, num_labels=10, ignore_mismatched_sizes=True)
9
  feature_extractor = ViTFeatureExtractor.from_pretrained(model_name)
10
 
 
51
  outputs="text",
52
  title="Citrus Disease Classification",
53
  description="Upload an image of a citrus leaf to classify its disease. The model is trained on the following diseases: Aleurocanthus spiniferus, Chancre citrique, Cochenille blanche, Dépérissement des agrumes, Feuille saine, Jaunissement des feuilles, Maladie de l'oïdium, Maladie du dragon jaune, Mineuse des agrumes, Trou de balle.",
54
+ examples=["maladie_du_dragon_jaune.jpg", "mineuse_des_agrumes.jpg","feuille_saine.jpg"]).launch(share=True)