coolkrishds commited on
Commit
3a9bb75
·
1 Parent(s): e474679

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -5,11 +5,11 @@ pipe = pipeline('sentiment-analysis')
5
 
6
  text = st.text_area('Enter some content !')
7
 
8
- # if text:
9
- # out = pipe(text)
10
- # st.json(out)
11
- for result in text:
12
- st.write(result['label'])
13
  # st.write("Label: ")
14
  # st.write(result['label'])
15
  # st.write("Score: ")
 
5
 
6
  text = st.text_area('Enter some content !')
7
 
8
+ if text:
9
+ out = pipe(text)
10
+ st.json(out)
11
+ # for result in text:
12
+ # st.write(result['label'])
13
  # st.write("Label: ")
14
  # st.write(result['label'])
15
  # st.write("Score: ")