Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -64,8 +64,8 @@ def format_prompt(message, history,seed):
|
|
64 |
print(f'MESSAGE :: {message}, USER_PROMPT :: {user_prompt}')
|
65 |
if user_prompt == message:
|
66 |
t=True
|
67 |
-
if t:
|
68 |
-
prompt
|
69 |
return prompt
|
70 |
else:
|
71 |
prompt += f"[INST] {message} [/INST]"
|
|
|
64 |
print(f'MESSAGE :: {message}, USER_PROMPT :: {user_prompt}')
|
65 |
if user_prompt == message:
|
66 |
t=True
|
67 |
+
if t==True:
|
68 |
+
prompt = "<s>"+f"[INST] {message} [/INST]"
|
69 |
return prompt
|
70 |
else:
|
71 |
prompt += f"[INST] {message} [/INST]"
|