Skip to content

Commit 7adf04a

Browse files
committedAug 16, 2023
minor fixes
1 parent c9f0a77 commit 7adf04a

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed
 

‎.streamlit/config.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[server]
22
maxUploadSize = 10
3-
runOnSave = true
3+
runOnSave = true
4+
5+
[ui]
6+
hideTopBar = true

‎dashboard.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# streamlit
88
st.set_page_config(
99
'{}'.format(page_title),
10-
'',
10+
'🏏',
1111
layout='wide',
1212
initial_sidebar_state='collapsed',
1313
menu_items={
@@ -17,6 +17,9 @@
1717
)
1818

1919
players_list_upload = st.sidebar.file_uploader("Upload Players List", type=["csv"])
20-
players_list = pd.read_csv(players_list_upload)
21-
st.dataframe(players_list)
20+
if players_list_upload is not None:
21+
players_list = pd.read_csv(players_list_upload)
22+
st.dataframe(players_list)
23+
else:
24+
st.info("Upload players list to continue")
2225

0 commit comments

Comments
 (0)
Please sign in to comment.