saisreesatyassss commited on
Commit
086f225
·
verified ·
1 Parent(s): a2174d9

Upload 3 files

Browse files
Files changed (3) hide show
  1. a1.png +0 -0
  2. model_index.json +11 -0
  3. 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)