Text Generation
Not-For-All-Audiences
ImRasul1 commited on
Commit
b32a59b
1 Parent(s): acf3644
Files changed (1) hide show
  1. 5 +5 -0
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))