@@ -140,14 +140,12 @@ def run_mapper(df, labels, **kwargs):
140140 )
141141
142142 lens = lens_pca (n_components = LENS_PCA_N_COMPONENTS )
143- lens_name = LENS_PCA
144143 if lens_type == LENS_IDENTITY :
145144 lens = lens_identity
146145 elif lens_type == LENS_PCA :
147146 lens = lens_pca (n_components = lens_pca_n_components )
148147 elif lens_type == LENS_UMAP :
149148 lens = lens_umap (n_components = lens_umap_n_components )
150- lens_name = lens_type
151149
152150 if cover_type == COVER_CUBICAL :
153151 cover = CubicalCover (
@@ -255,7 +253,10 @@ def __init__(self, storage):
255253 ).classes ("w-full" )
256254
257255 ui .label (
258- text = "If you like this project, please consider giving it a ⭐ on GitHub! Made with ❤️ and ☕️ in Rome."
256+ text = (
257+ "If you like this project, please consider giving it a ⭐ on GitHub!"
258+ "Made with ❤️ and ☕️ in Rome."
259+ )
259260 ).classes ("text-caption text-gray-500" ).classes (
260261 "text-caption text-gray-500"
261262 )
@@ -591,8 +592,9 @@ def main_page():
591592def main ():
592593 port = os .getenv ("PORT" , "8080" )
593594 host = os .getenv ("HOST" , "0.0.0.0" )
595+ storage_secret = os .getenv ("STORAGE_SECRET" , "storage_secret" )
594596 ui .run (
595- storage_secret = "secret" ,
597+ storage_secret = storage_secret ,
596598 reload = False ,
597599 host = host ,
598600 title = "tda-mapper-app" ,
0 commit comments