Update README.md
Browse files
README.md
CHANGED
@@ -80,9 +80,9 @@ The following hyperparameters were used during training:
|
|
80 |
### Code to Run
|
81 |
|
82 |
def vit_classify(image):
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
|
87 |
vit = ViTForImageClassification.from_pretrained("oschamp/vit-artworkclassifier")
|
88 |
vit.eval()
|
|
|
80 |
### Code to Run
|
81 |
|
82 |
def vit_classify(image):
|
83 |
+
from transformers import ViTFeatureExtractor
|
84 |
+
from transformers import ViTForImageClassification
|
85 |
+
import torch
|
86 |
|
87 |
vit = ViTForImageClassification.from_pretrained("oschamp/vit-artworkclassifier")
|
88 |
vit.eval()
|