Create 5
Browse files
5
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
input_text = "Привет, как дела?"
|
2 |
+
inputs = tokenizer(input_text, return_tensors="pt")
|
3 |
+
outputs = model.generate(inputs["input_ids"], max_length=50, num_return_sequences=1)
|
4 |
+
|
5 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|