From f90cba5b40f533d0c52268fc4f76811eda0f7724 Mon Sep 17 00:00:00 2001 From: Minniti Julien Date: Wed, 4 Sep 2024 10:55:16 +0200 Subject: [PATCH] Set error message for NCBI --- TFinder-v1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TFinder-v1.py b/TFinder-v1.py index f93b6f32..1c709e38 100644 --- a/TFinder-v1.py +++ b/TFinder-v1.py @@ -128,7 +128,7 @@ 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 st.secrets['ncbi_error']: +if st.secrets['ncbi_error'] == "True": st.error("⚠ NCBI server maintenance, problems and slowdowns may be observed") if chosen_tab == HOME: @@ -243,7 +243,7 @@ def load_lottiefile(filepath: str): try: local_test = platform.processor() if local_test == "": - unique_users = st.secrets['unique_users'] + unique_users = st.secrets['unique_users'] == "True" st.sidebar.markdown(f"Unique users 👥: {unique_users}") st.session_state["LOCAL"] = 'False' except Exception as e: