marcelcastrobr commited on
Commit
237ab4a
1 Parent(s): 3e8526e

update of application

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ def sequence_to_classify(sequence, labels):
12
  response1 = classifier(sequence, label_clean, hypothesis_template=hypothesis_template, multi_class=True)
13
  labels = response1['labels']
14
  scores = response1['scores']
15
- clean_output1 = {labels[idx]: float(scores[idx]) for idx in len(labels)}
16
 
17
  print("response is:{}".format(response))
18
  print(type(response))
 
12
  response1 = classifier(sequence, label_clean, hypothesis_template=hypothesis_template, multi_class=True)
13
  labels = response1['labels']
14
  scores = response1['scores']
15
+ clean_output1 = {labels[idx]: float(scores[idx]) for idx in range(len(labels))}
16
 
17
  print("response is:{}".format(response))
18
  print(type(response))