Commit
•
dac200a
1
Parent(s):
cecfb11
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from transformers import ViTFeatureExtractor, ViTForImageClassification
|
|
4 |
from PIL import Image
|
5 |
|
6 |
# Définir le modèle et le feature extractor
|
7 |
-
model_name =
|
8 |
model = ViTForImageClassification.from_pretrained(model_name, num_labels=10, ignore_mismatched_sizes=True)
|
9 |
feature_extractor = ViTFeatureExtractor.from_pretrained(model_name)
|
10 |
|
|
|
4 |
from PIL import Image
|
5 |
|
6 |
# Définir le modèle et le feature extractor
|
7 |
+
model_name ="KhadijaAsehnoune12/ViTOrangeLeafDiseaseClassifier"
|
8 |
model = ViTForImageClassification.from_pretrained(model_name, num_labels=10, ignore_mismatched_sizes=True)
|
9 |
feature_extractor = ViTFeatureExtractor.from_pretrained(model_name)
|
10 |
|