brendenc commited on
Commit
bf0d6f7
1 Parent(s): c8189b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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')