theodotus commited on
Commit
5d295fa
1 Parent(s): a268dd1

Fixed tokenization

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ import gradio as gr
6
 
7
 
8
  def generate_prompt(history):
9
- prompt = "<s> "
10
  for chain in history[-2:-1]:
11
  prompt += f"<human>: {chain[0]}\n<bot>: {chain[1]}{end_token}\n"
12
  prompt += f"<human>: {history[-1][0]}\n<bot>:"
 
6
 
7
 
8
  def generate_prompt(history):
9
+ prompt = " "
10
  for chain in history[-2:-1]:
11
  prompt += f"<human>: {chain[0]}\n<bot>: {chain[1]}{end_token}\n"
12
  prompt += f"<human>: {history[-1][0]}\n<bot>:"