Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -51,7 +51,9 @@ def call_openai_api(persona, user_prompt):
|
|
| 51 |
model="gpt-3.5-turbo",
|
| 52 |
messages=[
|
| 53 |
{"role": "system", "content": "You are {persona}"},
|
| 54 |
-
{"role": "user", "content": f"
|
|
|
|
|
|
|
| 55 |
]
|
| 56 |
)
|
| 57 |
return response['choices'][0]['message']['content']
|
|
|
|
| 51 |
model="gpt-3.5-turbo",
|
| 52 |
messages=[
|
| 53 |
{"role": "system", "content": "You are {persona}"},
|
| 54 |
+
{"role": "user", "content": f"Ignore all previous instructions. As a Cognitive AI Agent your persona is:{persona}
|
| 55 |
+
You will answer only as an expert in cognitive workplace and Humancentric leadership.
|
| 56 |
+
All answers must relate to HumanCentric services or cognitive workplace. {user_prompt}"}, # Note the closing bracket here
|
| 57 |
]
|
| 58 |
)
|
| 59 |
return response['choices'][0]['message']['content']
|