awacke1 commited on
Commit
c497b19
·
verified ·
1 Parent(s): 3fe30b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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()