sarwansingh commited on
Commit
7e9be3b
·
1 Parent(s): 2396725

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -1,4 +1,10 @@
1
  import streamlit as st
 
 
 
 
 
 
2
 
3
- x = st.slider('Select a value')
4
- st.write(x, 'squared is', x * x)
 
1
  import streamlit as st
2
+ from transformers import pipeline
3
+ pipe = pipeline ( 'sentiment-analysis')
4
+ text = st.text_area('Enter some text ')
5
+ if text :
6
+ out = pipe(text)
7
+ st.json(out)
8
 
9
+ # x = st.slider('Select a value')
10
+ # st.write(x, 'squared is', x * x)