indiejoseph commited on
Commit
e4a6d0b
1 Parent(s): 039d7bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -48,7 +48,7 @@ def generate(
48
  conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
49
  conversation.append({"role": "user", "content": message})
50
 
51
- printf(chat_history)
52
 
53
  input_ids = tokenizer.apply_chat_template(conversation, tokenize=True, add_generation_prompt=True, return_tensors='pt')
54
  if input_ids.shape[1] > MAX_INPUT_TOKEN_LENGTH:
 
48
  conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
49
  conversation.append({"role": "user", "content": message})
50
 
51
+ print(chat_history)
52
 
53
  input_ids = tokenizer.apply_chat_template(conversation, tokenize=True, add_generation_prompt=True, return_tensors='pt')
54
  if input_ids.shape[1] > MAX_INPUT_TOKEN_LENGTH: