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