Uvini commited on
Commit
76b9b81
·
1 Parent(s): 1880d6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -26,7 +26,7 @@ if file is not None:
26
 
27
  # Write the total number of records
28
  st.markdown(
29
- f'<div style="background-color: #4AA6DD; color: #ffffff; padding: 6px; font-size: 16px; font-weight: bold; text-align: center; border-radius: 1rem;margin-top: 10px"> Distribution of Reviews </div>',
30
  unsafe_allow_html=True
31
  )
32
 
@@ -52,7 +52,7 @@ if file is not None:
52
 
53
  with col1:
54
  st.markdown(
55
- f'<div style="background-color: #4AA6DD; color: #ffffff; padding: 6px; font-size: 16px; font-weight: bold; text-align: center; margin-bottom: 40px; border-radius: 1rem">Positive Reviews</div>',
56
  unsafe_allow_html=True
57
  )
58
  wc_pos = WordCloud(width=800, height=600, background_color="white", colormap="winter").generate(positive_reviews)
@@ -60,7 +60,7 @@ if file is not None:
60
 
61
  with col2:
62
  st.markdown(
63
- f'<div style="background-color: #4AA6DD; color: #ffffff; padding: 6px; font-size: 16px; font-weight: bold; text-align: center; margin-bottom: 40px;border-radius: 1rem">Negative Reviews</div>',
64
  unsafe_allow_html=True
65
  )
66
  wc_neg = WordCloud(width=800, height=600, background_color="white", colormap="winter").generate(negative_reviews)
@@ -68,7 +68,7 @@ if file is not None:
68
 
69
  # Display the sentiment of each review as cards
70
  st.markdown(
71
- f'<div style="background-color: #4AA6DD; color: #ffffff; padding: 6px; font-size: 16px; font-weight: bold; text-align: center; margin-top: 60px; border-radius: 1rem"> Reviews in depth </div>',
72
  unsafe_allow_html=True
73
  )
74
 
 
26
 
27
  # Write the total number of records
28
  st.markdown(
29
+ f'<div style="background-color: #4AA6DD; color: #ffffff; padding: 6px; font-size: 20px; font-weight: bold; text-align: center; border-radius: 1rem;margin-top: 10px"> Distribution of Reviews </div>',
30
  unsafe_allow_html=True
31
  )
32
 
 
52
 
53
  with col1:
54
  st.markdown(
55
+ f'<div style="background-color: #4AA6DD; color: #ffffff; padding: 6px; font-size: 20px; font-weight: bold; text-align: center; margin-bottom: 40px; border-radius: 1rem">Positive Reviews</div>',
56
  unsafe_allow_html=True
57
  )
58
  wc_pos = WordCloud(width=800, height=600, background_color="white", colormap="winter").generate(positive_reviews)
 
60
 
61
  with col2:
62
  st.markdown(
63
+ f'<div style="background-color: #4AA6DD; color: #ffffff; padding: 6px; font-size: 20px; font-weight: bold; text-align: center; margin-bottom: 40px;border-radius: 1rem">Negative Reviews</div>',
64
  unsafe_allow_html=True
65
  )
66
  wc_neg = WordCloud(width=800, height=600, background_color="white", colormap="winter").generate(negative_reviews)
 
68
 
69
  # Display the sentiment of each review as cards
70
  st.markdown(
71
+ f'<div style="background-color: #4AA6DD; color: #ffffff; padding: 6px; font-size: 20px; font-weight: bold; text-align: center; margin-top: 60px; border-radius: 1rem"> Reviews in depth </div>',
72
  unsafe_allow_html=True
73
  )
74