Jacob Jaroya commited on
Commit
7080885
1 Parent(s): 29633bc

App update

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -29,9 +29,10 @@ with st.form(key='tweet',clear_on_submit=True):
29
 
30
  #create columns to show outputs
31
  col1,col2,col3=st.columns(3)
32
- col1.title('Sentiment Emoji')
33
- col2.title('How this user feels about the vaccine')
34
- col3.title('Confidence of this prediction')
 
35
 
36
  if submit:
37
  print('submitted')
@@ -75,7 +76,7 @@ if submit:
75
  with col1:
76
  com.iframe("https://embed.lottiefiles.com/animation/125694")
77
  col2.write('Negative')
78
- col3.write(f'{s}%')
79
  elif l=='POSITIVE':
80
  with col1:
81
  com.iframe("https://embed.lottiefiles.com/animation/148485")
@@ -85,4 +86,4 @@ if submit:
85
  with col1:
86
  com.iframe("https://embed.lottiefiles.com/animation/136052")
87
  col2.write('Neutral')
88
- col3.write(f'{s}%')
 
29
 
30
  #create columns to show outputs
31
  col1,col2,col3=st.columns(3)
32
+ col1.write('<h2 style="font-size: 24px;">Sentiment Emoji</h2>', unsafe_allow_html=True)
33
+ col2.write('<h2 style="font-size: 24px;">How this user feels about the vaccine</h2>', unsafe_allow_html=True)
34
+ col3.write('<h2 style="font-size: 24px;">Confidence of this prediction</h2>', unsafe_allow_html=True)
35
+
36
 
37
  if submit:
38
  print('submitted')
 
76
  with col1:
77
  com.iframe("https://embed.lottiefiles.com/animation/125694")
78
  col2.write('Negative')
79
+ col3.write(f'{s:.2%}')
80
  elif l=='POSITIVE':
81
  with col1:
82
  com.iframe("https://embed.lottiefiles.com/animation/148485")
 
86
  with col1:
87
  com.iframe("https://embed.lottiefiles.com/animation/136052")
88
  col2.write('Neutral')
89
+ col3.write(f'{s:.2%}')