hdeldar commited on
Commit
23ef00e
·
1 Parent(s): 7a2c27f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -1,4 +1,14 @@
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
 
4
+ #x = st.slider('Select a value')
5
+ #st.write(x, 'squared is', x * x)
6
+
7
+ pipe = pipeline("sentiment-analysis" )
8
+ text = st.text_area("enter some text:")
9
+
10
+
11
+
12
+ if text:
13
+ out = pipe(text)
14
+ st.json(out)