Update README.md
Browse files
README.md
CHANGED
@@ -35,6 +35,9 @@ A: ์ผํํ๋ฌ ๊ฐ๊น? B: ์ ์ข์. A: ์ธ์ ๊ฐ๊น? B:
|
|
35 |
|
36 |
inputs = [text]
|
37 |
|
|
|
|
|
|
|
38 |
inputs = tokenizer(inputs, max_length=max_input_length, truncation=True, return_tensors="pt")
|
39 |
output = model.generate(**inputs, num_beams=3, do_sample=True, min_length=20, max_length=500, num_return_sequences=3)
|
40 |
for i in range(3):
|
|
|
35 |
|
36 |
inputs = [text]
|
37 |
|
38 |
+
tokenizer = AutoTokenizer.from_pretrained(model_dir)
|
39 |
+
model = AutoModelForSeq2SeqLM.from_pretrained(model_dir)
|
40 |
+
|
41 |
inputs = tokenizer(inputs, max_length=max_input_length, truncation=True, return_tensors="pt")
|
42 |
output = model.generate(**inputs, num_beams=3, do_sample=True, min_length=20, max_length=500, num_return_sequences=3)
|
43 |
for i in range(3):
|