Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
|
| 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)
|