Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ import logging
|
|
9 |
logging.basicConfig(level=logging.DEBUG)
|
10 |
|
11 |
# Load the pre-trained model and feature extractor
|
12 |
-
model_name = "google/vit-base-patch16-224
|
13 |
logging.info("Loading image processor and model...")
|
14 |
feature_extractor = AutoFeatureExtractor.from_pretrained(model_name)
|
15 |
model = AutoModelForImageClassification.from_pretrained(model_name)
|
|
|
9 |
logging.basicConfig(level=logging.DEBUG)
|
10 |
|
11 |
# Load the pre-trained model and feature extractor
|
12 |
+
model_name = "google/vit-base-patch16-224"
|
13 |
logging.info("Loading image processor and model...")
|
14 |
feature_extractor = AutoFeatureExtractor.from_pretrained(model_name)
|
15 |
model = AutoModelForImageClassification.from_pretrained(model_name)
|