Spaces:
Runtime error
Runtime error
Commit
·
dc5bc0f
1
Parent(s):
46c676d
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ dataset = datasets.load_dataset('beans')
|
|
7 |
|
8 |
extractor = AutoFeatureExtractor.from_pretrained("suresh-subramanian/beans-classification")
|
9 |
model = AutoModelForImageClassification.from_pretrained("suresh-subramanian/beans-classification")
|
|
|
10 |
|
11 |
labels = dataset['train'].features['labels'].names
|
12 |
|
|
|
7 |
|
8 |
extractor = AutoFeatureExtractor.from_pretrained("suresh-subramanian/beans-classification")
|
9 |
model = AutoModelForImageClassification.from_pretrained("suresh-subramanian/beans-classification")
|
10 |
+
feature_extractor = ViTFeatureExtractor.from_pretrained("google/vit-base-patch16-224")
|
11 |
|
12 |
labels = dataset['train'].features['labels'].names
|
13 |
|