Kaushik Bar
commited on
Commit
•
1c9f7e0
1
Parent(s):
8ac7f12
first commit
Browse files
app.py
CHANGED
@@ -116,7 +116,7 @@ def sequence_to_classify(text, labels):
|
|
116 |
|
117 |
sorted_sl = sorted(zip(scores, labels), key=lambda t:t[0], reverse=True)
|
118 |
|
119 |
-
pred["
|
120 |
pred["scores"], pred["labels"] = zip(*sorted_sl)
|
121 |
preds.append(pred)
|
122 |
|
|
|
116 |
|
117 |
sorted_sl = sorted(zip(scores, labels), key=lambda t:t[0], reverse=True)
|
118 |
|
119 |
+
pred["text"] = textlet
|
120 |
pred["scores"], pred["labels"] = zip(*sorted_sl)
|
121 |
preds.append(pred)
|
122 |
|