johnpaulbin commited on
Commit
24a888d
1 Parent(s): eabbd6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -131,7 +131,7 @@ def translateverbose():
131
  INPUT = torch.cat((probs, embedding))
132
  output = F.softmax(model(INPUT.view(1, -1)), dim=1)
133
 
134
- if output[0][1] > 0.68:
135
  output = "true" + str(output[0][1])
136
  else:
137
  output = "false" + str(output[0][0])
 
131
  INPUT = torch.cat((probs, embedding))
132
  output = F.softmax(model(INPUT.view(1, -1)), dim=1)
133
 
134
+ if output[0][1] > 0.4:
135
  output = "true" + str(output[0][1])
136
  else:
137
  output = "false" + str(output[0][0])