ferguch9 commited on
Commit
e346c8d
·
1 Parent(s): 9877e49
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,11 +1,11 @@
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
  if text:
11
  out = pipe(text)
 
1
  import streamlit as st
2
  from transformers import pipeline
3
 
4
+ x = st.slider('Select a value and I\'ll square it')
5
+ st.write(x, 'squared is', x * x)
6
 
7
  pipe = pipeline('sentiment-analysis')
8
+ text = st.text_area('Enter some text and I\'ll run sentiment analysis on it')
9
 
10
  if text:
11
  out = pipe(text)