wiklif commited on
Commit
6f67e5a
·
1 Parent(s): 440c906

removed </s>

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,8 +15,8 @@ def generate_response(chat, kwargs):
15
  def function(prompt, history=[]): # Tutaj dodajemy history jako opcjonalny parametr
16
  chat = "<s>"
17
  for user_prompt, bot_response in history:
18
- chat += f"[INST] {user_prompt} [/INST] {bot_response}</s> "
19
- chat += f"[INST] {prompt} [/INST]</s>"
20
  kwargs = dict(
21
  temperature=0.80,
22
  max_new_tokens=2048,
 
15
  def function(prompt, history=[]): # Tutaj dodajemy history jako opcjonalny parametr
16
  chat = "<s>"
17
  for user_prompt, bot_response in history:
18
+ chat += f"[INST] {user_prompt} [/INST] {bot_response}</s> <s>"
19
+ chat += f"[INST] {prompt} [/INST]"
20
  kwargs = dict(
21
  temperature=0.80,
22
  max_new_tokens=2048,