DawnC commited on
Commit
7c3c8a0
·
1 Parent(s): 1d50093

Update app.py

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