Update README.md
Browse files
README.md
CHANGED
@@ -81,7 +81,7 @@ input_ids = tokenizer.encode(question, return_tensors="pt")
|
|
81 |
|
82 |
output_ids = model.generate(input_ids, max_length=1200, num_beams=200, early_stopping=False)
|
83 |
|
84 |
-
answer =
|
85 |
|
86 |
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
87 |
|
|
|
81 |
|
82 |
output_ids = model.generate(input_ids, max_length=1200, num_beams=200, early_stopping=False)
|
83 |
|
84 |
+
answer = tokenizer.decode(output_ids[0], skip_special_tokens=True)
|
85 |
|
86 |
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
87 |
|