Update README.md
Browse files
README.md
CHANGED
@@ -56,11 +56,11 @@ MMM Chicago Stock Exchange, Inc.
|
|
56 |
|
57 |
Which debt securities are registered to trade on a national securities exchange under 3M's name as of Q2 of 2023?'''
|
58 |
|
59 |
-
#
|
60 |
prompt = user_input
|
61 |
|
62 |
inputs = tokenizer(prompt, return_tensors="pt", add_special_tokens=False).input_ids.to(model.device)
|
63 |
-
outputs = model.generate(input_ids=inputs, max_length=
|
64 |
|
65 |
answer_start = int(inputs.shape[-1])
|
66 |
pred = tokenizer.decode(outputs[answer_start:], skip_special_tokens=True)
|
|
|
56 |
|
57 |
Which debt securities are registered to trade on a national securities exchange under 3M's name as of Q2 of 2023?'''
|
58 |
|
59 |
+
# Simply use your input as the prompt
|
60 |
prompt = user_input
|
61 |
|
62 |
inputs = tokenizer(prompt, return_tensors="pt", add_special_tokens=False).input_ids.to(model.device)
|
63 |
+
outputs = model.generate(input_ids=inputs, max_length=2048)[0]
|
64 |
|
65 |
answer_start = int(inputs.shape[-1])
|
66 |
pred = tokenizer.decode(outputs[answer_start:], skip_special_tokens=True)
|