From 5a78faa231f7b5dfe11d30cd7584ffba2be3f4e9 Mon Sep 17 00:00:00 2001 From: mcguirepr89 Date: Fri, 18 Mar 2022 17:33:12 -0400 Subject: [PATCH] better spacing for species label --- scripts/plotly_streamlit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/plotly_streamlit.py b/scripts/plotly_streamlit.py index 1d6b8f0..e34e1f7 100755 --- a/scripts/plotly_streamlit.py +++ b/scripts/plotly_streamlit.py @@ -13,7 +13,7 @@ URI_SQLITE_DB = "/home/pi/BirdNET-Pi/scripts/birds.db" st.set_page_config(layout='wide') -@st.cache(hash_funcs={Connection: id}) +@st.cache(ttl=60,hash_funcs={Connection: id}) def get_connection(path: str): """Put the connection in cache to reuse if path does not change between Streamlit reruns. NB : https://stackoverflow.com/questions/48218065/programmingerror-sqlite-objects-created-in-a-thread-can-only-be-used-in-that-sa @@ -135,7 +135,7 @@ fig.update_layout( ), ) -fig.layout.annotations[1].update(x=0.775,y=0.4, font_size=20) +fig.layout.annotations[1].update(x=0.775,y=0.4, font_size=15) x=df_counts.index y=df_counts['Com_Name']