sonsus commited on
Commit
1f117c0
·
1 Parent(s): c4f0ff3

hardcode hiding default page link with filenames (.streamlit/config.toml does not apply for huggingface space demo)

Browse files
Files changed (1) hide show
  1. modules/nav.py +8 -0
modules/nav.py CHANGED
@@ -2,6 +2,14 @@ import streamlit as st
2
 
3
 
4
  def Navbar(sidebar_placeholder, toggle_hashstr: str = ""):
 
 
 
 
 
 
 
 
5
  with sidebar_placeholder.container():
6
  st.toggle(
7
  "🇰🇷 한국어로 보기",
 
2
 
3
 
4
  def Navbar(sidebar_placeholder, toggle_hashstr: str = ""):
5
+ st.markdown("""
6
+ <style>
7
+ #root > div:nth-child(1) > div.withScreencast > div > div > section.stSidebar.st-emotion-cache-1wqrzgl.eczjsme18 > div.st-emotion-cache-6qob1r.eczjsme11 > div.st-emotion-cache-bjn8wh.eczjsme17 > div,
8
+ #root > div:nth-child(1) > div.withScreencast > div > div > section.stSidebar.st-emotion-cache-1wqrzgl.eczjsme18 > div.st-emotion-cache-6qob1r.eczjsme11 > div.st-emotion-cache-bjn8wh.eczjsme17 > ul{
9
+ display: none;
10
+ }
11
+ </style>
12
+ """, unsafe_allow_html=True)
13
  with sidebar_placeholder.container():
14
  st.toggle(
15
  "🇰🇷 한국어로 보기",