rooa commited on
Commit
6056572
1 Parent(s): a94e500

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -49,7 +49,8 @@ prompt = f"### Human: Please summarize the following article.\n\n{article}.\n###
49
 
50
  inputs = tokenizer(header + prompt, return_tensors="pt")
51
  sample = model.generate(**inputs, do_sample=True, max_new_tokens=2048, top_k=100, eos_token_id=50256)
52
- print(tokenizer.decode(sample[0]))
 
53
  ```
54
 
55
  ## Citation
 
49
 
50
  inputs = tokenizer(header + prompt, return_tensors="pt")
51
  sample = model.generate(**inputs, do_sample=True, max_new_tokens=2048, top_k=100, eos_token_id=50256)
52
+ output = tokenizer.decode(sample[0])
53
+ print(output.strip().replace("Assistant:", ""))
54
  ```
55
 
56
  ## Citation