faizhalas commited on
Commit
544dcf4
1 Parent(s): f151e59

Update pages/4 Sunburst.py

Browse files
Files changed (1) hide show
  1. pages/4 Sunburst.py +21 -8
pages/4 Sunburst.py CHANGED
@@ -7,20 +7,33 @@ import sys
7
 
8
  #===config===
9
  st.set_page_config(
10
- page_title="Coconut",
11
- page_icon="🥥",
12
- layout="wide"
 
13
  )
14
- st.header("Data visualization")
15
  hide_streamlit_style = """
16
  <style>
17
- #MainMenu {visibility: hidden;}
 
18
  footer {visibility: hidden;}
 
19
  </style>
20
  """
21
- st.markdown(hide_streamlit_style, unsafe_allow_html=True)
22
 
23
- st.subheader('Put your CSV file and choose a visualization')
 
 
 
 
 
 
 
 
 
 
24
 
25
  #===clear cache===
26
  def reset_all():
@@ -56,7 +69,7 @@ def conv_txt(extype):
56
  return papers
57
 
58
  #===Read data===
59
- uploaded_file = st.file_uploader("Choose a file", type=['csv', 'txt'], on_change=reset_all)
60
 
61
  if uploaded_file is not None:
62
  extype = get_ext(uploaded_file)
 
7
 
8
  #===config===
9
  st.set_page_config(
10
+ page_title="Coconut",
11
+ page_icon="🥥",
12
+ layout="wide",
13
+ initial_sidebar_state="collapsed"
14
  )
15
+
16
  hide_streamlit_style = """
17
  <style>
18
+ #MainMenu
19
+ {visibility: hidden;}
20
  footer {visibility: hidden;}
21
+ [data-testid="collapsedControl"] {display: none}
22
  </style>
23
  """
24
+ st.markdown(hide_streamlit_style, unsafe_allow_html=True)
25
 
26
+ with st.popover("🔗 Menu"):
27
+ st.page_link("Home.py", label="Home", icon="🏠")
28
+ st.page_link("pages/1 Scattertext.py", label="Scattertext", icon="1️⃣")
29
+ st.page_link("pages/2 Topic Modeling.py", label="Topic Modeling", icon="2️⃣")
30
+ st.page_link("pages/3 Bidirected Network.py", label="Bidirected Network", icon="3️⃣")
31
+ st.page_link("pages/4 Sunburst.py", label="Sunburst", icon="4️⃣")
32
+ st.page_link("pages/5 Burst Detection.py", label="Burst Detection", icon="5️⃣")
33
+ st.page_link("pages/6 Keywords Stem.py", label="Keywords Stem", icon="6️⃣")
34
+
35
+ st.header("Sunburst Visualization", anchor=False)
36
+ st.subheader('Put your file here...', anchor=False)
37
 
38
  #===clear cache===
39
  def reset_all():
 
69
  return papers
70
 
71
  #===Read data===
72
+ uploaded_file = st.file_uploader('', type=['csv', 'txt'], on_change=reset_all)
73
 
74
  if uploaded_file is not None:
75
  extype = get_ext(uploaded_file)