Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -204,8 +204,8 @@ def image_classifier(inp):
|
|
204 |
|
205 |
# If input not valid, return dummy data or raise error
|
206 |
if inp is None:
|
207 |
-
|
208 |
-
|
209 |
# preprocess
|
210 |
image = preprocess_image(inp)
|
211 |
image = image.to(dtype=torch.float32)
|
|
|
204 |
|
205 |
# If input not valid, return dummy data or raise error
|
206 |
if inp is None:
|
207 |
+
if inp is None:
|
208 |
+
return {'Actinic Keratosis': 0.0, 'Basal Cell Carcinoma': 0.0, 'Benign Keratosis': 0.0, 'Dermatofibroma': 0.0, 'Melanoma': 0.0, 'Melanocytic Nevi': 0.0, 'Vascular Lesion': 0.0}
|
209 |
# preprocess
|
210 |
image = preprocess_image(inp)
|
211 |
image = image.to(dtype=torch.float32)
|