ecandeloro commited on
Commit
c05ca3a
·
verified ·
1 Parent(s): fc643ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -9
app.py CHANGED
@@ -7,15 +7,24 @@ examples = [
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:**
@@ -25,9 +34,3 @@ disclaimer = """
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()
 
7
  ]
8
 
9
  # Title and description
10
+ title = "🔎 Skin Cancer Image Classification - Classificazione di Tumori della Pelle"
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.\n
14
+ DISCLAIMER⚠️\n
15
+ 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.
16
+ \n
17
+ Questa app classifica le immagini di cancro della pelle in diverse categorie utilizzando un modello pre-addestrato. 🖼️✨
18
+ Carica la tua immagine o usa uno degli esempi per vedere i risultati.
19
+
20
+ **AVVISO⚠️**
21
+ 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.
22
+
23
  """
24
 
25
  # Add a disclaimer
26
  disclaimer = """
27
+ ****
28
  ⚠️ *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.*
29
 
30
  **Avviso legale:**
 
34
  # Load the model and launch the app with title, description, examples, and disclaimer
35
  demo = gr.load("models/Anwarkh1/Skin_Cancer-Image_Classification", examples=examples, title=title, description=description)
36