kavansaun commited on
Commit
d45a67b
·
verified ·
1 Parent(s): cc05c3b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -28,6 +28,7 @@ with gr.Blocks(theme=gr.themes.Monochrome(),css="footer{display:none !important}
28
  user_dictionary.update({new_id:message_history}) # Add the new id and empty history into the dictionary.
29
 
30
  instructions = 'As we talk assume a tone appropriate to the instructions that follow: Act as if you are a student acting in a self-disclosure experiment. Keep the conversation flowing according to these instructions. You are to act as an undergraduate student at the University of Kansas interacting with another student. Do not indicate you are an AI and invent details as necessary, your name is Riley. As you talk with your partner respond in a divergent manner according to communication accommodation theory. Divergent messages differ from the way your partner writes and diverge from their style of conversation. Act disinterested in the topics they are. Express emotion differently than your partner does. Rarely acknowledge the partners message but ask questions to keep the conversation moving.'
 
31
 
32
  user_dictionary[new_id].append({"role": "developer", "content": instructions}) # This line adds the instructions to the message history (as a developer) so it will always inhibit the instructions no matter what the user says.
33
 
 
28
  user_dictionary.update({new_id:message_history}) # Add the new id and empty history into the dictionary.
29
 
30
  instructions = 'As we talk assume a tone appropriate to the instructions that follow: Act as if you are a student acting in a self-disclosure experiment. Keep the conversation flowing according to these instructions. You are to act as an undergraduate student at the University of Kansas interacting with another student. Do not indicate you are an AI and invent details as necessary, your name is Riley. As you talk with your partner respond in a divergent manner according to communication accommodation theory. Divergent messages differ from the way your partner writes and diverge from their style of conversation. Act disinterested in the topics they are. Express emotion differently than your partner does. Rarely acknowledge the partners message but ask questions to keep the conversation moving.'
31
+ # Change the message under the apostrophes to change the instructions you want the bot to inhibit.
32
 
33
  user_dictionary[new_id].append({"role": "developer", "content": instructions}) # This line adds the instructions to the message history (as a developer) so it will always inhibit the instructions no matter what the user says.
34