Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from transformers import AutoFeatureExtractor, AutoModelForImageClassification
|
|
4 |
|
5 |
# This should be the same as the first line of Python code in this Colab notebook
|
6 |
dataset = load_dataset('beans')
|
7 |
-
|
8 |
model = AutoModelForImageClassification.from_pretrained("saved_model_files")
|
9 |
|
10 |
labels = dataset['train'].features['labels'].names
|
|
|
4 |
|
5 |
# This should be the same as the first line of Python code in this Colab notebook
|
6 |
dataset = load_dataset('beans')
|
7 |
+
feature_extractor = AutoFeatureExtractor.from_pretrained("saved_model_files")
|
8 |
model = AutoModelForImageClassification.from_pretrained("saved_model_files")
|
9 |
|
10 |
labels = dataset['train'].features['labels'].names
|