Skip to content

Commit

Permalink
Set error message for NCBI
Browse files Browse the repository at this point in the history
  • Loading branch information
Jumitti committed Sep 4, 2024
1 parent 1a4ef5e commit f90cba5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TFinder-v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit f90cba5

Please sign in to comment.