Spaces:
Running
Running
ecandeloro
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -6,9 +6,28 @@ examples = [
|
|
6 |
# Add more images as needed
|
7 |
]
|
8 |
|
9 |
-
#
|
10 |
-
title = "
|
11 |
-
description = "
|
|
|
|
|
|
|
12 |
|
13 |
-
#
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
# Add more images as needed
|
7 |
]
|
8 |
|
9 |
+
# Title and description
|
10 |
+
title = "Skin Cancer Image Classification"
|
11 |
+
description = """
|
12 |
+
This app classifies skin cancer images into different categories using a pre-trained model. 🖼️✨
|
13 |
+
Upload your own image or use one of the examples to see the results.
|
14 |
+
"""
|
15 |
|
16 |
+
# Add a disclaimer
|
17 |
+
disclaimer = """
|
18 |
+
**Disclaimer:**
|
19 |
+
⚠️ *This demo is for educational and informational purposes only. It is **not** intended to provide a medical diagnosis, nor should it be considered a substitute for professional medical advice, diagnosis, or treatment. We are not liable for any misclassification of skin cancer images. If you have concerns about your health, please consult a healthcare professional.*
|
20 |
+
|
21 |
+
**Avviso legale:**
|
22 |
+
⚠️ *Questa demo è solo a scopo educativo e informativo. **Non** è intesa a fornire una diagnosi medica, né deve essere considerata un sostituto di un consulto medico professionale, una diagnosi o un trattamento. Non siamo responsabili per eventuali errori nella classificazione delle immagini di cancro della pelle. Se hai preoccupazioni sulla tua salute, consulta un professionista sanitario.*
|
23 |
+
"""
|
24 |
+
|
25 |
+
# Load the model and launch the app with title, description, examples, and disclaimer
|
26 |
+
demo = gr.load("models/Anwarkh1/Skin_Cancer-Image_Classification", examples=examples, title=title, description=description)
|
27 |
+
|
28 |
+
# Add Markdown with disclaimer
|
29 |
+
with gr.Blocks() as app:
|
30 |
+
demo.launch()
|
31 |
+
gr.Markdown(disclaimer)
|
32 |
+
|
33 |
+
app.launch()
|