Matt C commited on
Commit
6c042c6
1 Parent(s): 1a5f890
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
 
3
+ txt = st.text_area('Text to analyze', '''
4
+ It was the best of times, it was the worst of times, it was
5
+ the age of wisdom, it was the age of foolishness, it was
6
+ the epoch of belief, it was the epoch of incredulity, it
7
+ was the season of Light, it was the season of Darkness, it
8
+ was the spring of hope, it was the winter of despair, (...)
9
+ ''')
10
+ st.write('Sentiment:', run_sentiment_analysis(txt))