Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import torch
|
|
3 |
from transformers import ViTFeatureExtractor, ViTForImageClassification
|
4 |
|
5 |
# Carregue o modelo ViT
|
6 |
-
model_name = "
|
7 |
feature_extractor = ViTFeatureExtractor.from_pretrained(model_name)
|
8 |
model = ViTForImageClassification.from_pretrained(model_name)
|
9 |
|
|
|
3 |
from transformers import ViTFeatureExtractor, ViTForImageClassification
|
4 |
|
5 |
# Carregue o modelo ViT
|
6 |
+
model_name = "mrm8488/vit-base-patch16-224_finetuned-kvasirv2-colonoscopy"
|
7 |
feature_extractor = ViTFeatureExtractor.from_pretrained(model_name)
|
8 |
model = ViTForImageClassification.from_pretrained(model_name)
|
9 |
|