File size: 219 Bytes
ab8b628
 
 
 
 
 
 
49d0f3b
1
2
3
4
5
6
7
8
9
from transformers import ViTForImageClassification
import os

ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))


def load_model():
    return ViTForImageClassification.from_pretrained(ROOT_DIR)