Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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]
|
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:
|