jervinjosh68 commited on
Commit
ab1e871
·
1 Parent(s): a29da01

category change

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. 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=2)
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:42b238af6dd26e746779eab9563b744a2f65275466753505a3785c9756782776
3
- size 44929133
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:792c8a851a0d214580503f17406e89979149c5ab143ef140c6b41383613e5f27
3
+ size 44931181