Spaces:
Runtime error
Runtime error
update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,8 @@ from PIL import Image
|
|
9 |
feature_extractor = ViTFeatureExtractor.from_pretrained('google/vit-base-patch16-224')
|
10 |
model = ViTForImageClassification.from_pretrained('google/vit-base-patch16-224')
|
11 |
|
|
|
|
|
12 |
examples_dir = './samples'
|
13 |
example_files = glob.glob(os.path.join(examples_dir, '*.jpg'))
|
14 |
|
|
|
9 |
feature_extractor = ViTFeatureExtractor.from_pretrained('google/vit-base-patch16-224')
|
10 |
model = ViTForImageClassification.from_pretrained('google/vit-base-patch16-224')
|
11 |
|
12 |
+
import os, glob
|
13 |
+
|
14 |
examples_dir = './samples'
|
15 |
example_files = glob.glob(os.path.join(examples_dir, '*.jpg'))
|
16 |
|