Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,7 @@ def setup_client():
|
|
67 |
def prepare_prompt(prompt, chat_history):
|
68 |
if genparam.TYPE == "chat" and chat_history:
|
69 |
chats = "\n".join([f"{message['role']}: \"{message['content']}\"" for message in chat_history])
|
70 |
-
return f"Conversation History:\n{chats}\n\n
|
71 |
return prompt
|
72 |
|
73 |
def apply_prompt_syntax(prompt, system_prompt, prompt_template, bake_in_prompt_syntax):
|
|
|
67 |
def prepare_prompt(prompt, chat_history):
|
68 |
if genparam.TYPE == "chat" and chat_history:
|
69 |
chats = "\n".join([f"{message['role']}: \"{message['content']}\"" for message in chat_history])
|
70 |
+
return f"Conversation History:\n{chats}\n\n New User Prompt: {prompt}"
|
71 |
return prompt
|
72 |
|
73 |
def apply_prompt_syntax(prompt, system_prompt, prompt_template, bake_in_prompt_syntax):
|