Spaces:
Running
Running
johnpaulbin
commited on
Commit
·
402700e
1
Parent(s):
aea79b5
Update app.py
Browse files
app.py
CHANGED
@@ -113,10 +113,10 @@ def translate():
|
|
113 |
INPUT = torch.cat((probs, embedding))
|
114 |
output = F.softmax(model(INPUT.view(1, -1)), dim=1)
|
115 |
|
116 |
-
if output[0][
|
117 |
-
output = "false"
|
118 |
-
else:
|
119 |
output = "true"
|
|
|
|
|
120 |
|
121 |
return output
|
122 |
|
|
|
113 |
INPUT = torch.cat((probs, embedding))
|
114 |
output = F.softmax(model(INPUT.view(1, -1)), dim=1)
|
115 |
|
116 |
+
if output[0][1] > 0.62:
|
|
|
|
|
117 |
output = "true"
|
118 |
+
else:
|
119 |
+
output = "false"
|
120 |
|
121 |
return output
|
122 |
|