Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,10 +64,10 @@ df = pd.read_csv(config.default_terms_csv)
|
|
| 64 |
st.title(config.app_title)
|
| 65 |
st.markdown(config.intro_para)
|
| 66 |
st.caption(config.app_author)
|
| 67 |
-
st.sidebar.title(config.sidebar_title)
|
| 68 |
-
with st.sidebar:
|
| 69 |
-
|
| 70 |
-
|
| 71 |
|
| 72 |
############################################################################################################
|
| 73 |
# File Uploader in sidebar
|
|
@@ -112,7 +112,7 @@ def get_first_column_values(df):
|
|
| 112 |
template_file_path = config.default_terms_csv
|
| 113 |
|
| 114 |
# File Uploader
|
| 115 |
-
uploaded_file = st.sidebar.file_uploader(" ", type=["csv"])
|
| 116 |
if uploaded_file is not None:
|
| 117 |
logging.info(f"File uploaded: {uploaded_file.name}")
|
| 118 |
st.session_state.uploaded_file = uploaded_file
|
|
@@ -126,10 +126,10 @@ else:
|
|
| 126 |
# Extract first column values
|
| 127 |
term_list = get_first_column_values(terms)
|
| 128 |
|
| 129 |
-
st.sidebar.markdown(create_download_link(template_file_path, "terms.csv"), unsafe_allow_html=True)
|
| 130 |
|
| 131 |
-
# line break in the sidebar
|
| 132 |
-
st.sidebar.markdown('<hr>', unsafe_allow_html=True)
|
| 133 |
|
| 134 |
############################################################################################################
|
| 135 |
# Term Selection and session state
|
|
|
|
| 64 |
st.title(config.app_title)
|
| 65 |
st.markdown(config.intro_para)
|
| 66 |
st.caption(config.app_author)
|
| 67 |
+
# st.sidebar.title(config.sidebar_title)
|
| 68 |
+
# with st.sidebar:
|
| 69 |
+
# with st.expander("Click here for instructions."):
|
| 70 |
+
# st.write(config.sidebar_instructions)
|
| 71 |
|
| 72 |
############################################################################################################
|
| 73 |
# File Uploader in sidebar
|
|
|
|
| 112 |
template_file_path = config.default_terms_csv
|
| 113 |
|
| 114 |
# File Uploader
|
| 115 |
+
uploaded_file = config.default_terms_csv#st.sidebar.file_uploader(" ", type=["csv"])
|
| 116 |
if uploaded_file is not None:
|
| 117 |
logging.info(f"File uploaded: {uploaded_file.name}")
|
| 118 |
st.session_state.uploaded_file = uploaded_file
|
|
|
|
| 126 |
# Extract first column values
|
| 127 |
term_list = get_first_column_values(terms)
|
| 128 |
|
| 129 |
+
# st.sidebar.markdown(create_download_link(template_file_path, "terms.csv"), unsafe_allow_html=True)
|
| 130 |
|
| 131 |
+
# # line break in the sidebar
|
| 132 |
+
# st.sidebar.markdown('<hr>', unsafe_allow_html=True)
|
| 133 |
|
| 134 |
############################################################################################################
|
| 135 |
# Term Selection and session state
|