1aurent commited on
Commit
437b7dc
1 Parent(s): b68b778

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -2
README.md CHANGED
@@ -56,8 +56,9 @@ img = Image.open(
56
  )
57
 
58
  # load image_processor and model from the hub
59
- image_processor = AutoImageProcessor.from_pretrained("owkin/phikon")
60
- model = AutoModelForImageClassification.from_pretrained("1aurent/phikon-distil-mobilenet_v2-kather2016")
 
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)