superlazycoder commited on
Commit
a7503d8
·
verified ·
1 Parent(s): 43bc504

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -63,7 +63,8 @@ if "chat" not in st.session_state:
63
  # If a move is selected, randomly choose a move for the computer and determine the result
64
  if st.session_state.player_move:
65
  player_move = st.session_state.player_move
66
- computer_move = st.session_state.chat.send_message(player_move)
 
67
 
68
  # Display player and computer moves
69
  col1, col2 = st.columns(2)
 
63
  # If a move is selected, randomly choose a move for the computer and determine the result
64
  if st.session_state.player_move:
65
  player_move = st.session_state.player_move
66
+ response = st.session_state.chat.send_message(player_move)
67
+ computer_move = response.text
68
 
69
  # Display player and computer moves
70
  col1, col2 = st.columns(2)