awacke1 commited on
Commit
b911ac9
·
1 Parent(s): 2d068d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,11 +11,11 @@ auth.set_access_token(access_token, access_token_secret)
11
  api = tw.API(auth, wait_on_rate_limit=True)
12
  classifier = pipeline('sentiment-analysis')
13
  st.title('Sentiment Analysis')
14
- st.markdown('Live Real Time Twitter sentiment enter: @TwitterAccount to see last N sentiments on mentions .')
15
  def run():
16
  with st.form(key='Enter name'):
17
  search_words = st.text_input('Enter the name for which you want to know the sentiment')
18
- number_of_tweets = st.number_input('Enter the number of latest tweets', 0,100,100)
19
  submit_button = st.form_submit_button(label='Submit')
20
  if submit_button:
21
  tweets =tw.Cursor(api.search_tweets,q=search_words,lang="en").items(number_of_tweets)
 
11
  api = tw.API(auth, wait_on_rate_limit=True)
12
  classifier = pipeline('sentiment-analysis')
13
  st.title('Sentiment Analysis')
14
+ st.markdown('Live Real Time Twitter sentiment enter: @TwitterAccount (Examples @lexfridman, @hubermanlab, @StanfordMed, @grok_, @annakaharris, @drmichaellevin, @CDCgov) to see last N sentiments on mentions .')
15
  def run():
16
  with st.form(key='Enter name'):
17
  search_words = st.text_input('Enter the name for which you want to know the sentiment')
18
+ number_of_tweets = st.number_input('Enter the number of latest tweets', 0,50,50)
19
  submit_button = st.form_submit_button(label='Submit')
20
  if submit_button:
21
  tweets =tw.Cursor(api.search_tweets,q=search_words,lang="en").items(number_of_tweets)