Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -51,12 +51,12 @@ if 'player_move' in locals():
|
|
51 |
if "chat" not in st.session_state:
|
52 |
st.session_state.chat = model.start_chat(history = [
|
53 |
{
|
54 |
-
role:
|
55 |
-
parts:
|
56 |
},
|
57 |
{
|
58 |
-
role:
|
59 |
-
parts:
|
60 |
}
|
61 |
])
|
62 |
|
|
|
51 |
if "chat" not in st.session_state:
|
52 |
st.session_state.chat = model.start_chat(history = [
|
53 |
{
|
54 |
+
role: 'user',
|
55 |
+
parts: 'You are playing a random rock paper scissor game. For rock will say "Rock", for paper will say "Paper" and for scissor will say "Scissor". Pick a random word out of three and reply once I do my move.'
|
56 |
},
|
57 |
{
|
58 |
+
role: 'model',
|
59 |
+
parts: 'Alright, let's play a random Rock-Paper-Scissors game. Make your first move!''
|
60 |
}
|
61 |
])
|
62 |
|