Loading per-widget. Various changes to streamlit interactions for efficiency.
d3c28ec
meg-huggingfacecommited on
Adds flag for live deployment so that things will not be all recalculated when live.
7c5239c
meg-huggingfacecommited on
More modularizing; npmi and labels
a2ae370
meg-huggingfacecommited on
Modularization and caching of text length widget
85cf91c
meg-huggingfacecommited on
Removes extraneous debugging print statements
6a9c993
meg-huggingfacecommited on
Begins modularizing so that each widget can be independently loaded without having a requirement on the ordering of load_or_preparing in app.py. This means that each function corresponding to a widget will check if the variables it depends on have been calculated yet. If not, it will call back to calculate them. Because of the messiness this causes with passing the use_cache variable around, I've now set use_cache as a global variable, set when the DatasetStatisticsCacheClass is initialized, and removed the use_cache arguments appearing in nearly every function.
4b53042
meg-huggingfacecommited on
Removing any need for a dataframe in expander_general_stats; instead making sure to cache and load the small amount of details needed for this widget. Note I also moved around a couple functions -- same content, just moved -- so that it was easier for me to navigate through the code. I also pulled out a couple of sub-functions from larger functions, again to make the code easier to work with/understand, as well as helping to further modularize so we can limit what needs to be cached.