faizhalas commited on
Commit
f151e59
1 Parent(s): 712d2ad

Update pages/3 Bidirected Network.py

Browse files
Files changed (1) hide show
  1. pages/3 Bidirected Network.py +21 -8
pages/3 Bidirected Network.py CHANGED
@@ -21,20 +21,33 @@ import time
21
 
22
  #===config===
23
  st.set_page_config(
24
- page_title="Coconut",
25
- page_icon="🥥",
26
- layout="wide"
 
27
  )
28
- st.header("Bidirected Keywords Network")
29
  hide_streamlit_style = """
30
  <style>
31
- #MainMenu {visibility: hidden;}
 
32
  footer {visibility: hidden;}
 
33
  </style>
34
  """
35
- st.markdown(hide_streamlit_style, unsafe_allow_html=True)
36
 
37
- st.subheader('Put your file here...')
 
 
 
 
 
 
 
 
 
 
38
 
39
  #===clear cache===
40
  def reset_all():
@@ -63,7 +76,7 @@ def conv_txt(extype):
63
  return papers
64
 
65
  #===Read data===
66
- uploaded_file = st.file_uploader("Choose a file", type=['csv', 'txt'], on_change=reset_all)
67
 
68
  if uploaded_file is not None:
69
  extype = get_ext(uploaded_file)
 
21
 
22
  #===config===
23
  st.set_page_config(
24
+ page_title="Coconut",
25
+ page_icon="🥥",
26
+ layout="wide",
27
+ initial_sidebar_state="collapsed"
28
  )
29
+
30
  hide_streamlit_style = """
31
  <style>
32
+ #MainMenu
33
+ {visibility: hidden;}
34
  footer {visibility: hidden;}
35
+ [data-testid="collapsedControl"] {display: none}
36
  </style>
37
  """
38
+ st.markdown(hide_streamlit_style, unsafe_allow_html=True)
39
 
40
+ with st.popover("🔗 Menu"):
41
+ st.page_link("Home.py", label="Home", icon="🏠")
42
+ st.page_link("pages/1 Scattertext.py", label="Scattertext", icon="1️⃣")
43
+ st.page_link("pages/2 Topic Modeling.py", label="Topic Modeling", icon="2️⃣")
44
+ st.page_link("pages/3 Bidirected Network.py", label="Bidirected Network", icon="3️⃣")
45
+ st.page_link("pages/4 Sunburst.py", label="Sunburst", icon="4️⃣")
46
+ st.page_link("pages/5 Burst Detection.py", label="Burst Detection", icon="5️⃣")
47
+ st.page_link("pages/6 Keywords Stem.py", label="Keywords Stem", icon="6️⃣")
48
+
49
+ st.header("Bidirected Network", anchor=False)
50
+ st.subheader('Put your file here...', anchor=False)
51
 
52
  #===clear cache===
53
  def reset_all():
 
76
  return papers
77
 
78
  #===Read data===
79
+ uploaded_file = st.file_uploader('', type=['csv', 'txt'], on_change=reset_all)
80
 
81
  if uploaded_file is not None:
82
  extype = get_ext(uploaded_file)