Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -315,7 +315,7 @@ def main():
|
|
315 |
|
316 |
# Sidebar for navigation
|
317 |
st.sidebar.title("Navigation")
|
318 |
-
page = st.sidebar.radio("Go to", ["Dashboard", "Data Explorer","About"
|
319 |
|
320 |
if page == "Dashboard":
|
321 |
display_dashboard(df)
|
@@ -325,19 +325,6 @@ def main():
|
|
325 |
display_about_page()
|
326 |
elif page=='Version Updates':
|
327 |
st.swtich_page('pages/version_updates.py')
|
328 |
-
|
329 |
-
if 'authenticated' not in st.session_state:
|
330 |
-
st.session_state.authenticated = False
|
331 |
-
|
332 |
-
if not st.session_state.authenticated:
|
333 |
-
password = st.text_input("Enter password", type="password")
|
334 |
-
if password == st.secrets["recommender_password"]:
|
335 |
-
st.session_state.authenticated = True
|
336 |
-
st.experimental_rerun()
|
337 |
-
elif password:
|
338 |
-
st.error("Incorrect password")
|
339 |
-
else:
|
340 |
-
import pages.recommender
|
341 |
-
pages.recommender.show()
|
342 |
if __name__ == "__main__":
|
343 |
main()
|
|
|
315 |
|
316 |
# Sidebar for navigation
|
317 |
st.sidebar.title("Navigation")
|
318 |
+
page = st.sidebar.radio("Go to", ["Dashboard", "Data Explorer","About"])
|
319 |
|
320 |
if page == "Dashboard":
|
321 |
display_dashboard(df)
|
|
|
325 |
display_about_page()
|
326 |
elif page=='Version Updates':
|
327 |
st.swtich_page('pages/version_updates.py')
|
328 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
329 |
if __name__ == "__main__":
|
330 |
main()
|