Commit
•
3e8526e
1
Parent(s):
fb3b31f
update of application
Browse files
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
|
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 len(labels)}
|
16 |
|
17 |
print("response is:{}".format(response))
|
18 |
print(type(response))
|