File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed
Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change 5151 If you find this app useful, please consider leaving a :star: on **[GitHub]({ GIT_REPO_URL } )**.
5252 '''
5353
54- ICON_PATH = 'app/logo_icon .png'
54+ ICON_URL = f' { GIT_REPO_URL } /raw/main/docs/source/logos/tda-mapper-logo-icon .png'
5555
56- LOGO_PATH = 'app/logo_hori .png'
56+ LOGO_URL = f' { GIT_REPO_URL } /raw/main/docs/source/logos/tda-mapper-logo-horizontal .png'
5757
5858APP_TITLE = 'TDA Mapper App'
5959
@@ -308,9 +308,8 @@ def graph_download_button(mapper_graph):
308308
309309
310310def set_page_config ():
311- icon = ICON_PATH if os .path .exists (ICON_PATH ) else '🔮'
312311 st .set_page_config (
313- page_icon = icon ,
312+ page_icon = ICON_URL ,
314313 page_title = APP_TITLE ,
315314 menu_items = {
316315 'Report a bug' : REPORT_BUG ,
@@ -319,21 +318,15 @@ def set_page_config():
319318
320319def set_sidebar_headings ():
321320 with st .sidebar :
322- if os .path .exists (LOGO_PATH ):
323- st .image (LOGO_PATH , width = 200 )
324- else :
325- st .header (f'🔮 { APP_TITLE } ' )
321+ st .image (LOGO_URL )
326322 st .markdown ('#' )
327323 st .markdown (DESCRIPTION )
328324 st .markdown ('#' )
329325
330326
331327def set_main_headings ():
332328 st .subheader ('' )
333- if os .path .exists (LOGO_PATH ):
334- st .image (LOGO_PATH , width = 300 )
335- else :
336- st .header (f'🔮 { APP_TITLE } ' )
329+ st .image (LOGO_URL )
337330 st .markdown ('#' )
338331
339332
You can’t perform that action at this time.
0 commit comments