Spaces:
Sleeping
Sleeping
Commit
·
ab1e871
1
Parent(s):
a29da01
category change
Browse files- app.py +1 -1
- weight.pth +2 -2
app.py
CHANGED
@@ -25,7 +25,7 @@ def predict(image_name):
|
|
25 |
inputs = inputs.to(device)
|
26 |
with torch.no_grad():
|
27 |
outputs = model(inputs.unsqueeze(0))
|
28 |
-
values, indices = torch.topk(outputs, k=
|
29 |
print(values,indices)
|
30 |
return {i.item(): v.item() for i, v in zip(indices[0], values.detach()[0])}
|
31 |
def preprocess(image_name):
|
|
|
25 |
inputs = inputs.to(device)
|
26 |
with torch.no_grad():
|
27 |
outputs = model(inputs.unsqueeze(0))
|
28 |
+
values, indices = torch.topk(outputs, k=3)
|
29 |
print(values,indices)
|
30 |
return {i.item(): v.item() for i, v in zip(indices[0], values.detach()[0])}
|
31 |
def preprocess(image_name):
|
weight.pth
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:792c8a851a0d214580503f17406e89979149c5ab143ef140c6b41383613e5f27
|
3 |
+
size 44931181
|