Spaces:
Runtime error
Runtime error
cybernatedArt
commited on
Commit
·
462128d
1
Parent(s):
7ba9fc9
Update app.py
Browse files
app.py
CHANGED
@@ -5,19 +5,19 @@ path_to_model = "./model_2.h5"
|
|
5 |
|
6 |
model = tf.keras.models.load_model(path_to_model)
|
7 |
|
8 |
-
labels = ['Acne and Rosacea
|
9 |
-
'Actinic Keratosis Basal Cell Carcinoma
|
10 |
-
'Atopic Dermatitis
|
11 |
-
'Cellulitis Impetigo
|
12 |
-
'Eczema
|
13 |
-
'Herpes HPV
|
14 |
-
'Lupus
|
15 |
-
'Melanoma Skin Cancer
|
16 |
-
'Poison Ivy
|
17 |
-
'Psoriasis
|
18 |
-
'Seborrheic Keratoses
|
19 |
-
'Tinea Ringworm
|
20 |
-
'Urticaria Hives', 'Vascular Tumors', 'Vasculitis
|
21 |
|
22 |
def classify_image(photos):
|
23 |
photos = photos.reshape((-1, 256, 256, 3))
|
|
|
5 |
|
6 |
model = tf.keras.models.load_model(path_to_model)
|
7 |
|
8 |
+
labels = ['Acne and Rosacea',
|
9 |
+
'Actinic Keratosis Basal Cell Carcinoma',
|
10 |
+
'Atopic Dermatitis', 'Bullous Disease',
|
11 |
+
'Cellulitis Impetigo (Bacterial Infections)',
|
12 |
+
'Eczema', 'Exanthems and Drug Eruptions', 'Hair Loss (Alopecia)',
|
13 |
+
'Herpes HPV', 'Disorders of Pigmentation',
|
14 |
+
'Lupus ',
|
15 |
+
'Melanoma (Skin Cancer)', 'Nail Fungus',
|
16 |
+
'Poison Ivy',
|
17 |
+
'Psoriasis (Lichen Planus)', 'Scabies Lyme',
|
18 |
+
'Seborrheic Keratoses', 'Systemic Disease',
|
19 |
+
'Tinea Ringworm (Fungal Infections)',
|
20 |
+
'Urticaria Hives', 'Vascular Tumors', 'Vasculitis', 'Warts Molluscum']
|
21 |
|
22 |
def classify_image(photos):
|
23 |
photos = photos.reshape((-1, 256, 256, 3))
|