pabloce commited on
Commit
becbc87
·
verified ·
1 Parent(s): 95538cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ def respond(
29
  top_p,
30
  ):
31
  stop_tokens = ["</s>", "[INST]", "[INST] ", "<s>", "[/INST]", "[/INST] "]
32
- chat_template = '<s>[INST] ' + system_prompt
33
  for human, assistant in history:
34
  chat_template += human + ' [/INST] ' + assistant + '</s>[INST]'
35
  chat_template += ' ' + message + ' [/INST]'
 
29
  top_p,
30
  ):
31
  stop_tokens = ["</s>", "[INST]", "[INST] ", "<s>", "[/INST]", "[/INST] "]
32
+ chat_template = '<s>[INST] ' + system_message
33
  for human, assistant in history:
34
  chat_template += human + ' [/INST] ' + assistant + '</s>[INST]'
35
  chat_template += ' ' + message + ' [/INST]'