Upload 3 files
Browse files- a1.png +0 -0
- model_index.json +11 -0
- test.py +9 -0
a1.png
ADDED
![]() |
model_index.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"pipeline_tag": "image-classification",
|
3 |
+
"tags": ["keras", "image-classification"],
|
4 |
+
"library_name": "keras",
|
5 |
+
"widget": [
|
6 |
+
{
|
7 |
+
"type": "image",
|
8 |
+
"example": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/cats.png"
|
9 |
+
}
|
10 |
+
]
|
11 |
+
}
|
test.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from huggingface_hub import InferenceClient
|
2 |
+
|
3 |
+
client = InferenceClient(model="saisreesatyassss/cancer-keras")
|
4 |
+
|
5 |
+
image_path = "a1.png"
|
6 |
+
with open(image_path, "rb") as f:
|
7 |
+
preds = client.image_classification(f)
|
8 |
+
|
9 |
+
print(preds)
|