czkaiweb commited on
Commit
eacbb93
·
1 Parent(s): c75478d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -42,7 +42,7 @@ def inference(input_image):
42
  with torch.no_grad():
43
  output = model(input_batch)
44
  # The output has unnormalized scores. To get probabilities, you can run a softmax on it.
45
- probabilities = torch.nn.functional.softmax(output[0], dim=0)
46
 
47
  # Read the categories
48
  with open("artist_classes.txt", "r") as f:
 
42
  with torch.no_grad():
43
  output = model(input_batch)
44
  # The output has unnormalized scores. To get probabilities, you can run a softmax on it.
45
+ probabilities = torch.nn.functional.softmax(output[0], dim=1)
46
 
47
  # Read the categories
48
  with open("artist_classes.txt", "r") as f: