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 f72fa64 commit 1a4ef5e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion TFinder-v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ 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']:
st.error("⚠ NCBI server maintenance, problems and slowdowns may be observed")

if chosen_tab == HOME:
home_page()

Expand Down Expand Up @@ -258,7 +261,8 @@ def load_lottiefile(filepath: str):
st.markdown(
'TFinder use [NCBI API](https://www.ncbi.nlm.nih.gov/books/NBK25497/#chapter2.Usage_Guidelines_and_Requiremen)'
': More information [NCBI Website and Data Usage Policies and Disclaimers](https://www.ncbi.nlm.nih.gov/home/about/policies/)')
# st.error("⚠ NCBI server maintenance, don't use Extraction tools")
if st.secrets['ncbi_error']:
st.error("⚠ NCBI server maintenance, problems and slowdowns may be observed")
st.markdown("TFinder use [JASPAR API](https://doi.org/10.1093/bioinformatics/btx804)")
st.markdown('')
st.markdown(
Expand Down

0 comments on commit 1a4ef5e

Please sign in to comment.