ganteng88 commited on
Commit
e6e4129
·
1 Parent(s): 7ed962b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- return {'cat': 0.3, 'dog': 0.7}
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)