Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
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:
|