arcsu1 commited on
Commit
507cd03
·
1 Parent(s): 9b22fc3
Files changed (1) hide show
  1. chatbot.py +1 -1
chatbot.py CHANGED
@@ -33,7 +33,7 @@ class ChatBot:
33
  attention_mask = torch.ones(inputs.shape, device=self.device)
34
  outputs = self.model.generate(
35
  inputs,
36
- max_new_token=20, # Adjust length as needed
37
  num_beams=5,
38
  early_stopping=True,
39
  no_repeat_ngram_size=2,
 
33
  attention_mask = torch.ones(inputs.shape, device=self.device)
34
  outputs = self.model.generate(
35
  inputs,
36
+ max_new_tokens=20, # Adjust length as needed
37
  num_beams=5,
38
  early_stopping=True,
39
  no_repeat_ngram_size=2,