Update README.md
Browse files
README.md
CHANGED
@@ -40,8 +40,8 @@ from PIL import Image
|
|
40 |
abc= hf_hub_download(repo_id="oohtmeel/swin-tiny-patch4-finetuned-lung-cancer-ct-scans",
|
41 |
filename="_X000a109d-56da-4c3f-8680-55afa04d6ae0.dcm.jpg.jpg")
|
42 |
image = Image.open(abc)
|
43 |
-
processor = AutoImageProcessor.from_pretrained("
|
44 |
-
model = AutoModelForImageClassification.from_pretrained("
|
45 |
inputs = processor(images=image, return_tensors="pt")
|
46 |
outputs = model(**inputs)
|
47 |
logits = outputs.logits
|
|
|
40 |
abc= hf_hub_download(repo_id="oohtmeel/swin-tiny-patch4-finetuned-lung-cancer-ct-scans",
|
41 |
filename="_X000a109d-56da-4c3f-8680-55afa04d6ae0.dcm.jpg.jpg")
|
42 |
image = Image.open(abc)
|
43 |
+
processor = AutoImageProcessor.from_pretrained("oohtmeel/swin-tiny-patch4-finetuned-lung-cancer-ct-scans")
|
44 |
+
model = AutoModelForImageClassification.from_pretrained("oohtmeel/swin-tiny-patch4-finetuned-lung-cancer-ct-scans")
|
45 |
inputs = processor(images=image, return_tensors="pt")
|
46 |
outputs = model(**inputs)
|
47 |
logits = outputs.logits
|