DawnC commited on
Commit
db65c1b
·
verified ·
1 Parent(s): 0c99393

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, dim=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, 1) # predicted is the max value's index on dim=1
156
  breed = dog_breeds[predicted.item()]
157
 
158
  description = get_dog_description(breed)