diff --git a/TFinder-v1.py b/TFinder-v1.py index 252eddf9..d5e04c72 100644 --- a/TFinder-v1.py +++ b/TFinder-v1.py @@ -129,6 +129,20 @@ def load_lottiefile(filepath: str): f" - TFinder on [Health Universe](https://www.healthuniverse.com/): [https://apps.healthuniverse.com/nhu-dxv-ktj](https://apps.healthuniverse.com/nhu-dxv-ktj)\n" f" - (BETA) TFinder: [https://tfinder-beta.streamlit.app/](https://tfinder-beta.streamlit.app/)\n") +if 'LOCAL' not in st.session_state: + local_test = platform.processor() + print("Platform:", local_test) + if local_test == "": + st.session_state["LOCAL"] = 'False' + else: + st.session_state["LOCAL"] = 'True' + +if st.session_state["LOCAL"] == 'False': + if st.secrets["message_from_god"] != "": + st.warning(st.secrets["message_from_god"]) + if st.secrets['ncbi_error'] == "True": + st.error("⚠ NCBI server maintenance, problems and slowdowns may be observed") + if chosen_tab == HOME: home_page() @@ -145,20 +159,6 @@ def load_lottiefile(filepath: str): st.markdown('#') st.markdown(footer, unsafe_allow_html=True) -if 'LOCAL' not in st.session_state: - local_test = platform.processor() - print("Platform:", local_test) - if local_test == "": - st.session_state["LOCAL"] = 'False' - else: - st.session_state["LOCAL"] = 'True' - -if st.session_state["LOCAL"] == 'False': - if st.secrets["message_from_god"] != "": - st.warning(st.secrets["message_from_god"]) - if st.secrets['ncbi_error'] == "True": - st.error("⚠ NCBI server maintenance, problems and slowdowns may be observed") - # streamlit_analytics.start_tracking() # Credit