UnicomAI commited on
Commit
d4428d6
1 Parent(s): dccdec0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -2
README.md CHANGED
@@ -89,8 +89,7 @@ outputs = pipeline(
89
  top_p=1,
90
  repetition_penalty=1.05
91
  )
92
- response = outputs[0][input_ids.shape[-1]:]
93
- print(tokenizer.decode(response, skip_special_tokens=True))
94
  ```
95
 
96
  ## 资源
 
89
  top_p=1,
90
  repetition_penalty=1.05
91
  )
92
+ print(outputs[0]["generated_text"][len(prompt):])
 
93
  ```
94
 
95
  ## 资源