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