ashutoshsharma58 commited on
Commit
a04d457
·
1 Parent(s): fb47997

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -1,4 +1,9 @@
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
+ #x = st.slider('Select a value')
9
+ #st.write(x, 'squared is', x * x)