vinhnx90 commited on
Commit
4ddc82f
1 Parent(s): 02fc271

Remove top bar

Browse files
Files changed (2) hide show
  1. .streamlit/config.toml +2 -0
  2. app.py +8 -2
.streamlit/config.toml CHANGED
@@ -4,3 +4,5 @@ primaryColor="#bf4545"
4
  backgroundColor="#262626"
5
  textColor="#bfb38f"
6
  font="serif"
 
 
 
4
  backgroundColor="#262626"
5
  textColor="#bfb38f"
6
  font="serif"
7
+
8
+ hideTopBar = true
app.py CHANGED
@@ -23,14 +23,20 @@ st.set_page_config(
23
  },
24
  )
25
 
 
 
 
 
 
 
26
  # Setup memory for contextual conversation
27
  msgs = StreamlitChatMessageHistory()
28
 
29
  with st.container():
30
- col1, col2 = st.columns([0.2, 0.8])
31
  with col1:
32
  st.image(
33
- "./assets/large_icon.png", use_column_width="always", output_format="PNG"
34
  )
35
  with col2:
36
  st.header(":books: InkChatGPT")
 
23
  },
24
  )
25
 
26
+ # Hide Header
27
+ st.markdown(
28
+ """<style>.stApp [data-testid="stToolbar"]{display:none;}</style>""",
29
+ unsafe_allow_html=True,
30
+ )
31
+
32
  # Setup memory for contextual conversation
33
  msgs = StreamlitChatMessageHistory()
34
 
35
  with st.container():
36
+ col1, col2 = st.columns([0.22, 0.8])
37
  with col1:
38
  st.image(
39
+ "./assets/app_icon.png", use_column_width="always", output_format="PNG"
40
  )
41
  with col2:
42
  st.header(":books: InkChatGPT")