Update app.py
Browse files
app.py
CHANGED
@@ -22,13 +22,19 @@ def classify(text):
|
|
22 |
labels = output['labels']
|
23 |
scores = output['scores']
|
24 |
return_labels = []
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
#
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
|
33 |
|
34 |
text = st.text_input('Enter some text:') # Input field for new text
|
|
|
22 |
labels = output['labels']
|
23 |
scores = output['scores']
|
24 |
return_labels = []
|
25 |
+
st.text(scores)
|
26 |
+
|
27 |
+
st.text(len(scores))
|
28 |
+
st.text(len(labels))
|
29 |
+
|
30 |
+
# for i in range(len(scores)):
|
31 |
+
# if scores[i] > 0.99:
|
32 |
+
# return_labels.append(labels[i])
|
33 |
+
# else:
|
34 |
+
# break
|
35 |
+
# # output = output[0:10]
|
36 |
+
# return return_labels
|
37 |
+
return labels[0:20]
|
38 |
|
39 |
|
40 |
text = st.text_input('Enter some text:') # Input field for new text
|