Update app.py
Browse files
app.py
CHANGED
|
@@ -30,19 +30,6 @@ import re
|
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
-
|
| 34 |
-
def Sort_Tuple(tup):
|
| 35 |
-
|
| 36 |
-
# (Sorts in descending order)
|
| 37 |
-
tup.sort(key = lambda x: x[1])
|
| 38 |
-
return tup[::-1]
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
def softmax(x):
|
| 42 |
-
exps = np.exp(x)
|
| 43 |
-
return np.divide(exps, np.sum(exps))
|
| 44 |
-
|
| 45 |
-
|
| 46 |
def get_sim(x):
|
| 47 |
x = str(x)[1:-1]
|
| 48 |
x = str(x)[1:-1]
|
|
|
|
| 30 |
|
| 31 |
|
| 32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
def get_sim(x):
|
| 34 |
x = str(x)[1:-1]
|
| 35 |
x = str(x)[1:-1]
|