yuhe6 commited on
Commit
f626afb
1 Parent(s): 2c78054

Update app.py

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