henrydz commited on
Commit
c6de409
·
1 Parent(s): 1282162

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ categories = learn.dls.vocab
13
 
14
  def tensor2labels(img):
15
  output = learn.predict(img)
16
- index = torch.where(output[1].sigmoid()>0.33)[0]
17
  category = categories[index]
18
  print(category)
19
  if 'dog' in category:
 
13
 
14
  def tensor2labels(img):
15
  output = learn.predict(img)
16
+ index = torch.where(output[1].sigmoid()>0.4)[0]
17
  category = categories[index]
18
  print(category)
19
  if 'dog' in category: