Spaces:
Sleeping
Sleeping
Update app_v2.py
Browse files
app_v2.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\nNew User Input: {prompt}
|
| 71 |
return f"User Input: {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\nNew User Input: {prompt}"
|
| 71 |
return f"User Input: {prompt}"
|
| 72 |
|
| 73 |
def apply_prompt_syntax(prompt, system_prompt, prompt_template, bake_in_prompt_syntax):
|