Lauraayu commited on
Commit
5c1719d
·
verified ·
1 Parent(s): d12f627

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -10
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
- # Display the classification result
22
- max_score = float('-inf')
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)