From 6ef05c2bc3e960045a87f7cefe61737100c5673e Mon Sep 17 00:00:00 2001 From: CaiusX Date: Tue, 31 May 2022 17:39:25 +0200 Subject: [PATCH] Updated Species stats with start of Species verification --- scripts/plotly_streamlit.py | 308 ++++++++++++++++++++++++------------ 1 file changed, 207 insertions(+), 101 deletions(-) diff --git a/scripts/plotly_streamlit.py b/scripts/plotly_streamlit.py index 5417c83..355db04 100755 --- a/scripts/plotly_streamlit.py +++ b/scripts/plotly_streamlit.py @@ -6,11 +6,13 @@ from numpy import ma import plotly.graph_objects as go from plotly.subplots import make_subplots import plotly.io as pio -from datetime import timedelta +from datetime import timedelta, datetime +from pathlib import Path import sqlite3 from sqlite3 import Connection import plotly.express as px from sklearn.preprocessing import normalize +import time pio.templates.default = "plotly_white" @@ -18,7 +20,7 @@ userDir = os.path.expanduser('~') URI_SQLITE_DB = userDir + '/BirdNET-Pi/scripts/birds.db' st.set_page_config(layout='wide') -# + # Remove whitespace from the top of the page st.markdown(""" ', @@ -111,7 +112,7 @@ st.write('