YanshekWoo commited on
Commit
e590807
1 Parent(s): fd3761b

Delete attention mask

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -26,8 +26,7 @@ def chat(history):
26
  max_length=512)
27
 
28
  input_ids = outputs.input_ids
29
- attention_mask = outputs.attention_mask
30
- output_ids = model.generate(input_ids, attention_mask)[0]
31
 
32
  return tokenizer.decode(output_ids, skip_special_tokens=True)
33
 
 
26
  max_length=512)
27
 
28
  input_ids = outputs.input_ids
29
+ output_ids = model.generate(input_ids)[0]
 
30
 
31
  return tokenizer.decode(output_ids, skip_special_tokens=True)
32