Uvini commited on
Commit
7212a1f
1 Parent(s): 894a1e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -55,8 +55,8 @@ if file is not None:
55
  unsafe_allow_html=True
56
  )
57
 
58
- wc = WordCloud(width=100, height=300, background_color="white", colormap="winter").generate(positive_reviews)
59
- st.markdown("<center><img src='data:image/png;base64,{}' width='500'></center>".format(base64.b64encode(wc.to_image()).decode()), unsafe_allow_html=True)
60
 
61
  st.markdown(
62
  f'<div style="background-color: #4AA6DD; color: #ffffff; padding: 6px; font-size: 20px; font-family: Verdana; font-weight: bold; text-align: center; margin-bottom: 40px; margin-top: 60px; border-radius: 1rem"> Causes behind Negative Reviews</div>',
 
55
  unsafe_allow_html=True
56
  )
57
 
58
+ wc = WordCloud(width=800, height=300, background_color="white", colormap="winter").generate(positive_reviews)
59
+ st.image(wc.to_array(),use_column_width=True)
60
 
61
  st.markdown(
62
  f'<div style="background-color: #4AA6DD; color: #ffffff; padding: 6px; font-size: 20px; font-family: Verdana; font-weight: bold; text-align: center; margin-bottom: 40px; margin-top: 60px; border-radius: 1rem"> Causes behind Negative Reviews</div>',