Spaces:
Running
Running
Commit
·
2a5bacf
1
Parent(s):
148470a
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,9 +15,9 @@ def translate():
|
|
| 15 |
result = model.predict_proba([data['text']])
|
| 16 |
|
| 17 |
if result[0][0] > result[0][1]:
|
| 18 |
-
result = "
|
| 19 |
else:
|
| 20 |
-
result = "
|
| 21 |
|
| 22 |
return jsonify(result)
|
| 23 |
|
|
|
|
| 15 |
result = model.predict_proba([data['text']])
|
| 16 |
|
| 17 |
if result[0][0] > result[0][1]:
|
| 18 |
+
result = "false"
|
| 19 |
else:
|
| 20 |
+
result = "true"
|
| 21 |
|
| 22 |
return jsonify(result)
|
| 23 |
|