pmolchanov commited on
Commit
deed901
·
verified ·
1 Parent(s): 57d8da9

Update app_chat.py

Browse files
Files changed (1) hide show
  1. app_chat.py +1 -1
app_chat.py CHANGED
@@ -86,7 +86,7 @@ def generate(
86
  use_cache = True,
87
  repetition_penalty=repetition_penalty,
88
  stopping_criteria = stopping_criteria,
89
- attention_mask = torch.ones_like(tokenized_chat), # Add this
90
  position_ids = None,
91
  kv_last_layer = None,
92
  )
 
86
  use_cache = True,
87
  repetition_penalty=repetition_penalty,
88
  stopping_criteria = stopping_criteria,
89
+ attention_mask = torch.ones_like(input_ids), # Add this
90
  position_ids = None,
91
  kv_last_layer = None,
92
  )