Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -8,6 +8,7 @@ extractor = AutoFeatureExtractor.from_pretrained("saved_model_files")
|
|
8 |
model = AutoModelForImageClassification.from_pretrained("saved_model_files")
|
9 |
|
10 |
labels = dataset['train'].features['labels'].names
|
|
|
11 |
|
12 |
def classify(im):
|
13 |
features = feature_extractor(im, return_tensors='pt')
|
|
|
8 |
model = AutoModelForImageClassification.from_pretrained("saved_model_files")
|
9 |
|
10 |
labels = dataset['train'].features['labels'].names
|
11 |
+
example_imgs = ["example_0.jpg", "example_1.jpg","example_2.jpg"]
|
12 |
|
13 |
def classify(im):
|
14 |
features = feature_extractor(im, return_tensors='pt')
|