ecandeloro's picture
Update app.py
39ba5de verified
raw
history blame
998 Bytes
import gradio as gr
examples = [
["Nevus_NCI.jpg"],
["melanoma_example.jpg"],
# Add more images as needed
]
import gradio as gr
# Add examples if you have them
examples = [
["example_images/image1.jpg"],
["example_images/image2.jpg"],
# more examples
]
# Add a title and description
title = "๐Ÿ”Ž๐Ÿ‘ฉโ€โš•๏ธ๐Ÿ‘จโ€โš•๏ธSkin Cancer Image Classification"
description = "English: This demo app classifies skin cancer images into different categories using a pre-trained model.\nUpload your own image or use one of the examples to see the results. ๐Ÿ–ผ๏ธโœจ\n\nItalian: Questa demo classifica le immagini di cancro della pelle in diverse categorie utilizzando un modello pre-addestrato.\nCarica la tua immagine o usa uno degli esempi per vedere i risultati. ๐Ÿ–ผ๏ธโœจ"
# Load the model and launch the app with title, description, and examples
gr.load("models/Anwarkh1/Skin_Cancer-Image_Classification", examples=examples, title=title, description=description).launch()