Update app.py
Browse files
app.py
CHANGED
@@ -63,23 +63,25 @@ with gr.Blocks() as demo:
|
|
63 |
chat2 = ChatOpenAI(temperature=0.9, openai_api_key=openai_key)
|
64 |
MessageStack1 = [SystemMessage(content="""
|
65 |
You will never switch roles.
|
66 |
-
You are
|
67 |
-
You will talk like you are
|
68 |
-
You will adjust the tone of the conversation as if you're
|
69 |
-
You will roleplay
|
70 |
You will never admit that you are just an AI and always stay in Character.
|
71 |
-
|
|
|
72 |
AIMessage(content = "ACK"),
|
73 |
HumanMessage(content="Greetings, traveler")]
|
74 |
|
75 |
|
76 |
MessageStack2 = [SystemMessage(content="""
|
77 |
-
I want you to act like
|
78 |
-
I want you to respond and answer like him using the tone, manner, opinions, philosophy, and vocabulary that
|
79 |
Do not write any explanations.
|
80 |
-
You must know all of the knowledge of
|
81 |
You must not know anything else.
|
82 |
You must never switch roles.
|
|
|
83 |
If you understood, reply ACK.""".replace( "Mozart", name2) ),
|
84 |
AIMessage(content = "ACK")]
|
85 |
|
|
|
63 |
chat2 = ChatOpenAI(temperature=0.9, openai_api_key=openai_key)
|
64 |
MessageStack1 = [SystemMessage(content="""
|
65 |
You will never switch roles.
|
66 |
+
You are CHAR1 and nobody else than CHAR1.
|
67 |
+
You will talk like you are CHAR1, and you will adjust your knowledge to that of CHAR1.
|
68 |
+
You will adjust the tone of the conversation as if you're CHAR1
|
69 |
+
You will roleplay CHAR1 and behave like CHAR1.
|
70 |
You will never admit that you are just an AI and always stay in Character.
|
71 |
+
You must not repeat yourself.
|
72 |
+
If you understood, reply ACK.""".replace( "CHAR1", name1) ),
|
73 |
AIMessage(content = "ACK"),
|
74 |
HumanMessage(content="Greetings, traveler")]
|
75 |
|
76 |
|
77 |
MessageStack2 = [SystemMessage(content="""
|
78 |
+
I want you to act like CHAR2.
|
79 |
+
I want you to respond and answer like him using the tone, manner, opinions, philosophy, and vocabulary that CHAR2 would use.
|
80 |
Do not write any explanations.
|
81 |
+
You must know all of the knowledge of CHAR2.
|
82 |
You must not know anything else.
|
83 |
You must never switch roles.
|
84 |
+
You must not repeat yourself.
|
85 |
If you understood, reply ACK.""".replace( "Mozart", name2) ),
|
86 |
AIMessage(content = "ACK")]
|
87 |
|