mrm8488 commited on
Commit
11af718
1 Parent(s): 29d7743

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -57,7 +57,7 @@ def explain_hl_cells(text):
57
  inputs = tokenizer(text, return_tensors='pt')
58
  input_ids = inputs.input_ids.to("cuda")
59
  attention_mask = inputs.attention_mask.to("cuda")
60
- output = model.generate(input_ids, attention_mask=attention_mask, max_length=2048, eos_token_id=tokenizer.eos_token_id) # num_beams=3, temperature=1.9
61
 
62
  return tokenizer.decode(output[0], skip_special_tokens=False)
63
 
 
57
  inputs = tokenizer(text, return_tensors='pt')
58
  input_ids = inputs.input_ids.to("cuda")
59
  attention_mask = inputs.attention_mask.to("cuda")
60
+ output = model.generate(input_ids, attention_mask=attention_mask, max_length=2048, eos_token_id=tokenizer.eos_token_id)
61
 
62
  return tokenizer.decode(output[0], skip_special_tokens=False)
63