Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def predict_skin_disease(image):
|
|
38 |
_, predicted_class = torch.max(output, 1)
|
39 |
|
40 |
# Map the predicted class index to the corresponding class label
|
41 |
-
class_label = ['
|
42 |
class_label = class_label[predicted_class.item()]
|
43 |
|
44 |
|
|
|
38 |
_, predicted_class = torch.max(output, 1)
|
39 |
|
40 |
# Map the predicted class index to the corresponding class label
|
41 |
+
class_label = ['No DR', 'Mild', 'Moderate', 'Severe', 'Proliferative']
|
42 |
class_label = class_label[predicted_class.item()]
|
43 |
|
44 |
|