Update README.md
Browse files
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)
|
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 |
|