ayoni02 commited on
Commit
c0ecc22
·
verified ·
1 Parent(s): 6454685

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,8 +18,8 @@ def main():
18
  if text:
19
  results = classifier(text, labels)
20
  #st.write(results['sequence'])
21
- st.write(results['labels'][:3])
22
- st.write(results['scores'][:3])
23
  if results['labels'][0] != ("NEUTRAL" or "POSITIVE"):
24
  st.write(f"This post is considered {results['labels'][0]}, Please review you words")
25
  else:
 
18
  if text:
19
  results = classifier(text, labels)
20
  #st.write(results['sequence'])
21
+ st.write(results['labels'][0])
22
+ st.write(int(results['scores'][0])*100)
23
  if results['labels'][0] != ("NEUTRAL" or "POSITIVE"):
24
  st.write(f"This post is considered {results['labels'][0]}, Please review you words")
25
  else: