Update app.py
Browse files
app.py
CHANGED
@@ -37,8 +37,8 @@ def classify_compliant(text):
|
|
37 |
ranking = np.argsort(scores)
|
38 |
ranking = ranking[::-1]
|
39 |
|
40 |
-
|
41 |
-
|
42 |
#s = scores[ranking[i]]
|
43 |
#probs[l] = np.round(float(s), 4)
|
44 |
return l
|
|
|
37 |
ranking = np.argsort(scores)
|
38 |
ranking = ranking[::-1]
|
39 |
|
40 |
+
|
41 |
+
l = config.id2label[ranking[0]]
|
42 |
#s = scores[ranking[i]]
|
43 |
#probs[l] = np.round(float(s), 4)
|
44 |
return l
|