Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -69,6 +69,14 @@ classes = {4: ('nv', ' melanocytic nevi'), 6: ('mel', 'melanoma'),
|
|
69 |
0: ('akiec', 'Actinic keratoses and intraepithelial carcinomae'),
|
70 |
3: ('df', 'dermatofibroma')}
|
71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
|
73 |
if file is not None:
|
74 |
|
@@ -116,7 +124,7 @@ if file is not None:
|
|
116 |
if file:
|
117 |
name = file.name.split(".")[0]
|
118 |
if name in true_file['image_id'].values:
|
119 |
-
st.write("True Label: ", true_file.loc[true_file['image_id']==name, 'dx'].iloc[0])
|
120 |
else:
|
121 |
st.write("No match")
|
122 |
|
|
|
69 |
0: ('akiec', 'Actinic keratoses and intraepithelial carcinomae'),
|
70 |
3: ('df', 'dermatofibroma')}
|
71 |
|
72 |
+
classes_map = {'nv': 'melanocytic nevi',
|
73 |
+
'mel': 'melanoma',
|
74 |
+
'bkl', :'benign keratosis-like lesions',
|
75 |
+
'bcc':' basal cell carcinoma',
|
76 |
+
'vasc': ' pyogenic granulomas and hemorrhage',
|
77 |
+
'akiec': 'Actinic keratoses and intraepithelial carcinomae',
|
78 |
+
'df': 'dermatofibroma'}
|
79 |
+
|
80 |
|
81 |
if file is not None:
|
82 |
|
|
|
124 |
if file:
|
125 |
name = file.name.split(".")[0]
|
126 |
if name in true_file['image_id'].values:
|
127 |
+
st.write("True Label: ", classes_map[true_file.loc[true_file['image_id']==name, 'dx'].iloc[0]])
|
128 |
else:
|
129 |
st.write("No match")
|
130 |
|