yxmauw commited on
Commit
07e66aa
1 Parent(s): 071ae5f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -15,7 +15,7 @@ def import_nltk():
15
  # configuration of the page
16
  st.set_page_config(
17
  layout='centered',
18
- page_icon=Image.open('project_3/cloud_app/subreddit_icon.png'),
19
  page_title='Marvel vs. DC comics',
20
  initial_sidebar_state='auto'
21
  )
@@ -23,7 +23,7 @@ st.set_page_config(
23
  # embed source link in title image using base64 module
24
  # reference: https://discuss.streamlit.io/t/how-to-show-local-gif-image/3408/4
25
  # reference: https://discuss.streamlit.io/t/local-image-button/5409/4
26
- im = open("project_3/cloud_app/subreddit_icon.png", "rb")
27
  contents = im.read()
28
  im_base64 = base64.b64encode(contents).decode("utf-8")
29
  im.close()
@@ -33,7 +33,7 @@ html = f'''<a href='https://www.reddit.com/'>
33
  st.markdown(html, unsafe_allow_html=True)
34
 
35
  st.title('Subreddit Post classifier')
36
- local_css("project_3/cloud_app/highlight_text.css")
37
  text = '''The algorithm driving this app is built using subreddit posts published
38
  between April and July 2022. It is only able to classify between
39
  <span class='highlight blue'> **Marvel** </span>
 
15
  # configuration of the page
16
  st.set_page_config(
17
  layout='centered',
18
+ page_icon=Image.open('subreddit_icon.png'),
19
  page_title='Marvel vs. DC comics',
20
  initial_sidebar_state='auto'
21
  )
 
23
  # embed source link in title image using base64 module
24
  # reference: https://discuss.streamlit.io/t/how-to-show-local-gif-image/3408/4
25
  # reference: https://discuss.streamlit.io/t/local-image-button/5409/4
26
+ im = open("subreddit_icon.png", "rb")
27
  contents = im.read()
28
  im_base64 = base64.b64encode(contents).decode("utf-8")
29
  im.close()
 
33
  st.markdown(html, unsafe_allow_html=True)
34
 
35
  st.title('Subreddit Post classifier')
36
+ local_css("highlight_text.css")
37
  text = '''The algorithm driving this app is built using subreddit posts published
38
  between April and July 2022. It is only able to classify between
39
  <span class='highlight blue'> **Marvel** </span>