Fernando Knüttel commited on
Commit
daaeaa4
·
1 Parent(s): e316288

remove header at beginning

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +8 -3
src/streamlit_app.py CHANGED
@@ -52,6 +52,14 @@ def check_password():
52
  # Path to Image
53
  image_path = os.path.join(BASE_DIR, "img", "background.png")
54
  bg_base64 = get_base64_of_bin_file(image_path)
 
 
 
 
 
 
 
 
55
 
56
 
57
  if check_password():
@@ -64,9 +72,6 @@ if check_password():
64
  background-position: center;
65
  background-repeat: no-repeat;
66
  }}
67
- [data-testid="stHeader"] {{
68
- display: none;
69
- }}
70
  </style>
71
  """
72
 
 
52
  # Path to Image
53
  image_path = os.path.join(BASE_DIR, "img", "background.png")
54
  bg_base64 = get_base64_of_bin_file(image_path)
55
+ removing_header = """
56
+ <style>
57
+ [data-testid="stHeader"] {
58
+ display: none;
59
+ }
60
+ </style>
61
+ """
62
+ st.markdown(removing_header, unsafe_allow_html=True)
63
 
64
 
65
  if check_password():
 
72
  background-position: center;
73
  background-repeat: no-repeat;
74
  }}
 
 
 
75
  </style>
76
  """
77