jbraha commited on
Commit
3331829
·
1 Parent(s): 3cbd9e3
Files changed (1) hide show
  1. app.py +2 -0
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