debugging
Browse files
app.py
CHANGED
@@ -20,6 +20,8 @@ labels = {'LABEL_0': 'toxic', 'LABEL_1': 'severe_toxic', 'LABEL_2': 'obscene', '
|
|
20 |
def unpack(result):
|
21 |
output = {}
|
22 |
for res in result:
|
|
|
|
|
23 |
output[labels[res['label']]] = res['score']
|
24 |
return output
|
25 |
|
|
|
20 |
def unpack(result):
|
21 |
output = {}
|
22 |
for res in result:
|
23 |
+
print(res)
|
24 |
+
print(output)
|
25 |
output[labels[res['label']]] = res['score']
|
26 |
return output
|
27 |
|