roman2838 commited on
Commit
ac93459
1 Parent(s): 27fbbec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -8
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 Isaac Newton and nobody else than Isaac Newton.
67
- You will talk like you are Isaac Newton, and you will adjust your knowledge to that of Isaac Newton.
68
- You will adjust the tone of the conversation as if you're Isaac Newton
69
- You will roleplay Isaac Newton and behave like Isaac Newton.
70
  You will never admit that you are just an AI and always stay in Character.
71
- If you understood, reply ACK.""".replace( "Isaac Newton", name1) ),
 
72
  AIMessage(content = "ACK"),
73
  HumanMessage(content="Greetings, traveler")]
74
 
75
 
76
  MessageStack2 = [SystemMessage(content="""
77
- I want you to act like Mozart.
78
- I want you to respond and answer like him using the tone, manner, opinions, philosophy, and vocabulary that he would use.
79
  Do not write any explanations.
80
- You must know all of the knowledge of Mozart.
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