Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def greet(Word1, Word2):
|
|
24 |
instances[0]=([vocab_to_int[l] for l in item])
|
25 |
instances=instances.astype(float)
|
26 |
val=model.predict(instances)[0]
|
27 |
-
percentage =
|
28 |
return percentage
|
29 |
|
30 |
|
|
|
24 |
instances[0]=([vocab_to_int[l] for l in item])
|
25 |
instances=instances.astype(float)
|
26 |
val=model.predict(instances)[0]
|
27 |
+
percentage = "{:.0%}".format(val[1])
|
28 |
return percentage
|
29 |
|
30 |
|