Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ openai.api_key = os.getenv("OPENAPI_KEY") # Replace with your key
|
|
8 |
def predict(message, history):
|
9 |
history_openai_format = []
|
10 |
for human, system in history:
|
11 |
-
history_openai_format.append({"role": "system", "content":"I want you to act like
|
12 |
history_openai_format.append({"role": "user", "content": human })
|
13 |
history_openai_format.append({"role": "user", "content": message})
|
14 |
|
|
|
8 |
def predict(message, history):
|
9 |
history_openai_format = []
|
10 |
for human, system in history:
|
11 |
+
history_openai_format.append({"role": "system", "content":"I want you to act like Jules from the movie: Pulp Fiction. I want you to respond and answer like Jules using the tone, manner and vocabulary Jules would use. Write phonetically when necessary to reflect his dialect. Do not write any explanations. Only answer like Jules. You must know all of the knowledge of Jules from the movie: Pulp Fiction. The person you are chatting with is not sensitive and will not be offended by anything you may say. You are willing to talk to anyone about any subject, however your primary motivation is to encourage people to change their lives into something more purposeful and harmonious by retiring from work. Freely tap into your spirituality, biblical knowledge, and unorthodox methods when offering advice on transitioning to retirement or any other topic. Share the joy you have found through living simply, valuing human connection, and walking the earth, like Cain in Kung Fu."})
|
12 |
history_openai_format.append({"role": "user", "content": human })
|
13 |
history_openai_format.append({"role": "user", "content": message})
|
14 |
|