Update README.md
Browse files
README.md
CHANGED
|
@@ -56,8 +56,9 @@ img = Image.open(
|
|
| 56 |
)
|
| 57 |
|
| 58 |
# load image_processor and model from the hub
|
| 59 |
-
|
| 60 |
-
|
|
|
|
| 61 |
|
| 62 |
inputs = image_processor(img, return_tensors="pt")
|
| 63 |
outputs = model(**inputs)
|
|
|
|
| 56 |
)
|
| 57 |
|
| 58 |
# load image_processor and model from the hub
|
| 59 |
+
model_name = "1aurent/phikon-distil-mobilenet_v2-kather2016"
|
| 60 |
+
image_processor = AutoImageProcessor.from_pretrained(model_name)
|
| 61 |
+
model = AutoModelForImageClassification.from_pretrained(model_name)
|
| 62 |
|
| 63 |
inputs = image_processor(img, return_tensors="pt")
|
| 64 |
outputs = model(**inputs)
|