Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from transformers import ViTForImageClassification, AutoImageProcessor
|
|
6 |
|
7 |
# Load model & processor
|
8 |
|
9 |
-
model_path = "
|
10 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
11 |
|
12 |
model = ViTForImageClassification.from_pretrained(model_path, use_safetensors=True)
|
|
|
6 |
|
7 |
# Load model & processor
|
8 |
|
9 |
+
model_path = "model"
|
10 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
11 |
|
12 |
model = ViTForImageClassification.from_pretrained(model_path, use_safetensors=True)
|