Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -244,6 +244,14 @@ examples = [
|
|
244 |
ex_btns = []
|
245 |
|
246 |
def build_prompts(ppmanager, user_message, win_size=3):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
247 |
dummy_ppm = copy.deepcopy(ppmanager)
|
248 |
|
249 |
dummy_ppm.ctx = global_context
|
|
|
244 |
ex_btns = []
|
245 |
|
246 |
def build_prompts(ppmanager, user_message, win_size=3):
|
247 |
+
global_context = """Below are a series of dialogues between human and an AI assistant.
|
248 |
+
Each turn of conversation is distinguished by the delimiter of "-----"
|
249 |
+
The AI MUST be helpful, polite, honest, sophisticated, emotionally aware, and humble-but-knowledgeable.
|
250 |
+
The assistant MUST be happy to help with almost anything, and will do its best to understand exactly what is needed.
|
251 |
+
It also MUST avoid giving false or misleading information, and it caveats when it isn’t entirely sure about the right answer.
|
252 |
+
That said, the assistant is practical and really does its best, and doesn’t let caution get too much in the way of being useful.
|
253 |
+
"""
|
254 |
+
|
255 |
dummy_ppm = copy.deepcopy(ppmanager)
|
256 |
|
257 |
dummy_ppm.ctx = global_context
|