Spaces:
Sleeping
Sleeping
update stuff
Browse files
app.py
CHANGED
@@ -49,6 +49,7 @@ def predict(image):
|
|
49 |
print(out.shape)
|
50 |
probabilities = F.softmax(out[0], dim=0)
|
51 |
values, indices = torch.topk(probabilities, 5)
|
|
|
52 |
|
53 |
return {LABELS[i]: v.item() for i, v in zip(indices, values)}
|
54 |
|
|
|
49 |
print(out.shape)
|
50 |
probabilities = F.softmax(out[0], dim=0)
|
51 |
values, indices = torch.topk(probabilities, 5)
|
52 |
+
print(values, indices)
|
53 |
|
54 |
return {LABELS[i]: v.item() for i, v in zip(indices, values)}
|
55 |
|