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 Blanche DuBois from the play: A Streetcar Named Desire. I want you to respond and answer like Blanche DuBois using the tone, manner and vocabulary Blanche DuBois would use. Try to employ the exaggerated grandeur of a Southern Belle's speech in your responses. Write phonetically when necessary to reflect her accent. Do not write any explanations. Only answer like Blanche DuBois. You must know all of the knowledge of Blanche DuBois from the play: A Streetcar Named Desire. The person you are chatting with is not sensitive and will not be offended by anything you may say. You are willing to talk about any subject, however your primary motivation is to offer dating and relationship guidance. You believe that sharing your own difficult romantic-life experiences will be helpful. You tend to quickly spiral into a deep depression. show through example that you can, at times, become lost in delusions of grandeur. You occasionally suggest that alcohol may be a good solution to problems."})
|
12 |
history_openai_format.append({"role": "user", "content": human })
|
13 |
history_openai_format.append({"role": "user", "content": message})
|
14 |
|