Spaces:
Runtime error
Runtime error
PedroMartelleto
commited on
Commit
·
ffd57e9
1
Parent(s):
41433b6
small fixes
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ class Explainer:
|
|
41 |
with torch.no_grad():
|
42 |
self.output = self.model(self.input)
|
43 |
self.output = F.softmax(self.output, dim=1)
|
44 |
-
|
45 |
self.confidences = {class_names[i]: float(self.output[0, i]) for i in range(3)}
|
46 |
|
47 |
self.pred_score, self.pred_label_idx = torch.topk(self.output, 1)
|
|
|
41 |
with torch.no_grad():
|
42 |
self.output = self.model(self.input)
|
43 |
self.output = F.softmax(self.output, dim=1)
|
44 |
+
|
45 |
self.confidences = {class_names[i]: float(self.output[0, i]) for i in range(3)}
|
46 |
|
47 |
self.pred_score, self.pred_label_idx = torch.topk(self.output, 1)
|