Spaces:
Build error
Build error
System / user tags are not neded ?
Browse files
app.py
CHANGED
|
@@ -37,8 +37,8 @@ model_info ={
|
|
| 37 |
def format_promt(message, custom_instructions=None):
|
| 38 |
prompt = ""
|
| 39 |
if custom_instructions:
|
| 40 |
-
prompt += f"
|
| 41 |
-
prompt += f"
|
| 42 |
return prompt
|
| 43 |
|
| 44 |
def reset_conversation():
|
|
|
|
| 37 |
def format_promt(message, custom_instructions=None):
|
| 38 |
prompt = ""
|
| 39 |
if custom_instructions:
|
| 40 |
+
prompt += f"system\n{custom_instructions}\n"
|
| 41 |
+
prompt += f"user\n{message}\n"
|
| 42 |
return prompt
|
| 43 |
|
| 44 |
def reset_conversation():
|