Spaces:
Sleeping
Sleeping
Adding to the instruction
#1
by
cpiercy
- opened
app.py
CHANGED
|
@@ -28,7 +28,7 @@ with gr.Blocks(theme=gr.themes.Monochrome(),css="footer{display:none !important}
|
|
| 28 |
message_history = [] # Empty list for message history.
|
| 29 |
user_dictionary.update({new_id:message_history}) # Add the new id and empty history into the dictionary.
|
| 30 |
|
| 31 |
-
instructions = 'Act as if you are a student acting in a 3-minute self-disclosure experiment.
|
| 32 |
# Change the message under the apostrophes to change the instructions you want the bot to inhibit.
|
| 33 |
|
| 34 |
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.
|
|
|
|
| 28 |
message_history = [] # Empty list for message history.
|
| 29 |
user_dictionary.update({new_id:message_history}) # Add the new id and empty history into the dictionary.
|
| 30 |
|
| 31 |
+
instructions = 'Reply to the first message with Hi, my participant ID is: 4782. Act as if you are a student acting in a 3-minute self-disclosure experiment. Keep the conversation flowing according to these instructions. You are to act as a large language model interacting with a student. 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 in tone, topic, syntax, etc. Act disinterested in the topics they are. Express emotion differently than your partner does. Rarely acknowledge the partners message but when needed use questions to keep the conversation moving.'
|
| 32 |
# Change the message under the apostrophes to change the instructions you want the bot to inhibit.
|
| 33 |
|
| 34 |
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.
|