Spaces:
Running
Running
ecandeloro
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -5,5 +5,18 @@ examples = [
|
|
5 |
["melanoma_example.jpg"],
|
6 |
# Add more images as needed
|
7 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
-
|
|
|
|
5 |
["melanoma_example.jpg"],
|
6 |
# Add more images as needed
|
7 |
]
|
8 |
+
import gradio as gr
|
9 |
+
|
10 |
+
# Add examples if you have them
|
11 |
+
examples = [
|
12 |
+
["example_images/image1.jpg"],
|
13 |
+
["example_images/image2.jpg"],
|
14 |
+
# more examples
|
15 |
+
]
|
16 |
+
|
17 |
+
# Add a title and description
|
18 |
+
title = "🔎👩⚕️👨⚕️Skin Cancer Image Classification"
|
19 |
+
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. 🖼️✨"
|
20 |
|
21 |
+
# Load the model and launch the app with title, description, and examples
|
22 |
+
gr.load("models/Anwarkh1/Skin_Cancer-Image_Classification", examples=examples, title=title, description=description).launch()
|