Kirili4ik commited on
Commit
09f0075
1 Parent(s): 9283ef4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -55,11 +55,8 @@ def chat_function(Message, Length_of_the_answer, Who_is_next, Base_to_On_subject
55
  top_k=50,
56
  top_p=0.9,
57
  temperature = float(Base_to_On_subject_temperature), # 0 for greedy
58
- mask_token_id=tokenizer.mask_token_id,
59
  eos_token_id=tokenizer.eos_token_id,
60
- unk_token_id=tokenizer.unk_token_id,
61
- pad_token_id=tokenizer.pad_token_id,
62
- device='cpu'
63
  )
64
 
65
  response = tokenizer.decode(chat_history_ids[:, input_len:][0], skip_special_tokens=True)
 
55
  top_k=50,
56
  top_p=0.9,
57
  temperature = float(Base_to_On_subject_temperature), # 0 for greedy
 
58
  eos_token_id=tokenizer.eos_token_id,
59
+ pad_token_id=tokenizer.pad_token_id
 
 
60
  )
61
 
62
  response = tokenizer.decode(chat_history_ids[:, input_len:][0], skip_special_tokens=True)