Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ def predict(message, history, system_prompt, temperature, max_new_tokens, top_k,
|
|
75 |
if system_prompt:
|
76 |
prompt_builder.append(f"<<SYS>>\n{system_prompt}\n<</SYS>>\n\n")
|
77 |
for human, assistant in history:
|
78 |
-
prompt_builder.append(f"{human} [/INST] {assistant}</s>[INST] ")
|
79 |
prompt_builder.append(f"{message} [/INST]")
|
80 |
instruction = ''.join(prompt_builder)
|
81 |
else:
|
|
|
75 |
if system_prompt:
|
76 |
prompt_builder.append(f"<<SYS>>\n{system_prompt}\n<</SYS>>\n\n")
|
77 |
for human, assistant in history:
|
78 |
+
prompt_builder.append(f"{human} [/INST] {assistant}</s>[INST] ")
|
79 |
prompt_builder.append(f"{message} [/INST]")
|
80 |
instruction = ''.join(prompt_builder)
|
81 |
else:
|