danupurnomo commited on
Commit
8cfdf08
·
1 Parent(s): a80b06a

Disable background

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -56,21 +56,21 @@ def convert_img_to_base64(img_path):
56
  encoded_string = base64.b64encode(image_file.read())
57
  return encoded_string
58
 
59
- # img_background_path = os.path.join(img_path, '01 - background.jpg')
60
- img_background_path = os.path.join(img_path, 'test-02.jpg')
61
- encoded_string = convert_img_to_base64(img_background_path)
62
- st.markdown(
63
- f"""
64
- <style>
65
- .stApp {{
66
- background-image: url(data:image/{"jpg"};base64,{encoded_string.decode()});
67
- background-size: cover;
68
- }}
69
 
70
- </style>
71
- """,
72
- unsafe_allow_html=True
73
- )
74
 
75
  # STEP 5 - SET TITLE AND OPENER
76
  ## STEP 5.1 - SET TITLE
 
56
  encoded_string = base64.b64encode(image_file.read())
57
  return encoded_string
58
 
59
+ # # img_background_path = os.path.join(img_path, '01 - background.jpg')
60
+ # img_background_path = os.path.join(img_path, 'test-02.jpg')
61
+ # encoded_string = convert_img_to_base64(img_background_path)
62
+ # st.markdown(
63
+ # f"""
64
+ # <style>
65
+ # .stApp {{
66
+ # background-image: url(data:image/{"jpg"};base64,{encoded_string.decode()});
67
+ # background-size: cover;
68
+ # }}
69
 
70
+ # </style>
71
+ # """,
72
+ # unsafe_allow_html=True
73
+ # )
74
 
75
  # STEP 5 - SET TITLE AND OPENER
76
  ## STEP 5.1 - SET TITLE