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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -5
app.py CHANGED
@@ -6,9 +6,28 @@ examples = [
6
  # Add more images as needed
7
  ]
8
 
9
- # Add a title and description
10
- title = "🔎👩‍⚕️👨‍⚕️Skin Cancer Image Classification"
11
- 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. 🖼️✨"
 
 
 
12
 
13
- # Load the model and launch the app with title, description, and examples
14
- gr.load("models/Anwarkh1/Skin_Cancer-Image_Classification", examples=examples, title=title, description=description).launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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()