Spaces:
Runtime error
Runtime error
feat: format the input prompt with the correct delimiters
Browse files
app.py
CHANGED
@@ -126,7 +126,7 @@ def format_prompt(message, history, system_prompt):
|
|
126 |
prompt += f"{user_prompt}"
|
127 |
prompt += f"{bot_response}"
|
128 |
prompt += f"""{message}"""
|
129 |
-
return prompt
|
130 |
|
131 |
def generate(
|
132 |
prompt, history, system_prompt,
|
|
|
126 |
prompt += f"{user_prompt}"
|
127 |
prompt += f"{bot_response}"
|
128 |
prompt += f"""{message}"""
|
129 |
+
return prompt.replace('\n','؛').replace('\t','/')
|
130 |
|
131 |
def generate(
|
132 |
prompt, history, system_prompt,
|