Junr-syl commited on
Commit
6a63bea
·
1 Parent(s): 7fc522d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,7 +21,7 @@ with st.form(key='tweet',clear_on_submit=False):
21
  #input text
22
  text=st.text_area('Copy and paste a tweet or type one',placeholder='I find it quite amusing how people ignore the effects of not taking the vaccine')
23
  #Set examples
24
- alt_text=st.selectbox("Can't Type? Select an Example below",('I hate the vaccines','Vaccines made from dead human tissues','Take the vaccines or regret the consequences','Covid is a Hoax','Making the vaccines is a huge step forward for humanity. Just take them'))
25
  #Select a model
26
  models={'Roberta': 'Junr-syl/sentiments_analysis_Roberta',
27
  'Bert': 'Junr-syl/sentiments_analysis_upgrade',
@@ -42,7 +42,7 @@ if submit:
42
  #Check text
43
  if text=="":
44
  text=alt_text
45
- st.write(f'input text is set to {text}')
46
  else:
47
  st.success('Text received',icon='✅')
48
 
 
21
  #input text
22
  text=st.text_area('Copy and paste a tweet or type one',placeholder='I find it quite amusing how people ignore the effects of not taking the vaccine')
23
  #Set examples
24
+ alt_text=st.selectbox("Can't Type? Select an Example below",('I hate the vaccines','Vaccines made from dead human tissues','Take the vaccines or regret the consequences','Covid is a Hoax','Making the vaccines is a huge step forward for humanity. Just take them'))
25
  #Select a model
26
  models={'Roberta': 'Junr-syl/sentiments_analysis_Roberta',
27
  'Bert': 'Junr-syl/sentiments_analysis_upgrade',
 
42
  #Check text
43
  if text=="":
44
  text=alt_text
45
+ st.success(f"input text is set to '{text}'")
46
  else:
47
  st.success('Text received',icon='✅')
48