Pravalika56 commited on
Commit
a8486a7
·
verified ·
1 Parent(s): d1aeee8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ labels = response.text.split("\n")
10
 
11
  def get_predictions(inp):
12
  inp = transforms.ToTensor()(inp).unsqueeze(0)
13
- predictions = torch.nn.Functional.softmax(model(inp)[0], dim = 0)
14
  conf = {labels[i]: predictions[i] for i in range(len(labels))}
15
  return conf
16
 
 
10
 
11
  def get_predictions(inp):
12
  inp = transforms.ToTensor()(inp).unsqueeze(0)
13
+ predictions = torch.nn.functional.softmax(model(inp)[0], dim = 0)
14
  conf = {labels[i]: predictions[i] for i in range(len(labels))}
15
  return conf
16