Instructions to use DayanaRR00456/skincancer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use DayanaRR00456/skincancer with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://DayanaRR00456/skincancer") - Notebooks
- Google Colab
- Kaggle
Skin Cancer Detector Model
This is a deep learning model trained with Keras to classify skin lesions into benign or malignant categories. It accepts JPG or PNG image inputs of size 300x300 pixels.
How to use
You can use this model via Hugging Face API Inference like so:
import requests
API_URL = "https://api-inference.huggingface.co/models/DayanaRR00456/skin-cancer-detector"
headers = {"Authorization": "Bearer <YOUR_HF_TOKEN>"}
response = requests.post(
API_URL,
headers=headers,
files={"file": open("image.jpg", "rb")},
)
print(response.json())
- Downloads last month
- 1