Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -57,6 +57,9 @@ def main():
|
|
57 |
st.title("Player Cards and Monsters")
|
58 |
st.write("π Select a player card to reveal a monster and battle it! π")
|
59 |
|
|
|
|
|
|
|
60 |
st.sidebar.title("π Select a Player Card")
|
61 |
selected_player = st.sidebar.radio("Select a player:", list(PLAYERS.keys()))
|
62 |
display_player_card(selected_player, PLAYERS[selected_player])
|
|
|
57 |
st.title("Player Cards and Monsters")
|
58 |
st.write("π Select a player card to reveal a monster and battle it! π")
|
59 |
|
60 |
+
if "players" not in st.session_state:
|
61 |
+
st.session_state.players = {}
|
62 |
+
|
63 |
st.sidebar.title("π Select a Player Card")
|
64 |
selected_player = st.sidebar.radio("Select a player:", list(PLAYERS.keys()))
|
65 |
display_player_card(selected_player, PLAYERS[selected_player])
|