Update app.py
Browse files
app.py
CHANGED
@@ -76,6 +76,9 @@ def main():
|
|
76 |
if st.button("East"):
|
77 |
direction = "East"
|
78 |
|
|
|
|
|
|
|
79 |
if direction != "None":
|
80 |
st.session_state.locations = move_emojis(st.session_state.locations, current_location, direction)
|
81 |
st.experimental_rerun()
|
|
|
76 |
if st.button("East"):
|
77 |
direction = "East"
|
78 |
|
79 |
+
if 'direction' not in locals():
|
80 |
+
direction = "None"
|
81 |
+
|
82 |
if direction != "None":
|
83 |
st.session_state.locations = move_emojis(st.session_state.locations, current_location, direction)
|
84 |
st.experimental_rerun()
|