Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,13 +18,5 @@ if st.button("Classify"):
|
|
18 |
# Perform text classification on the input text
|
19 |
result0 = summarizer_ntg(text)
|
20 |
result = classifier(result0)
|
21 |
-
|
22 |
-
|
23 |
-
max_label = ''
|
24 |
-
for result in results:
|
25 |
-
if result['score'] > max_score:
|
26 |
-
max_score = result['score']
|
27 |
-
max_label = result['label']
|
28 |
-
st.write("Text:", text)
|
29 |
-
st.write("Label:", max_label)
|
30 |
-
st.write("Score:", max_score)
|
|
|
18 |
# Perform text classification on the input text
|
19 |
result0 = summarizer_ntg(text)
|
20 |
result = classifier(result0)
|
21 |
+
|
22 |
+
st.write(result)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|