DawnC commited on
Commit
4dc5272
·
verified ·
1 Parent(s): 568f439

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -152,8 +152,7 @@ def predict(image):
152
  logits = output[0]
153
  else:
154
  logits = output
155
- _, predicted = torch.max(logits, 1)
156
- #predicted = torch.argmax(logits, dim=1) # predicted is the max value's index
157
  breed = dog_breeds[predicted.item()]
158
 
159
  description = get_dog_description(breed)
 
152
  logits = output[0]
153
  else:
154
  logits = output
155
+ _, predicted = torch.max(logits, 1) # predicted is the max value's index
 
156
  breed = dog_breeds[predicted.item()]
157
 
158
  description = get_dog_description(breed)