sashanepomnyachaya commited on
Commit
63c7a9e
·
verified ·
1 Parent(s): f5581f8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +19 -3
README.md CHANGED
@@ -1,3 +1,19 @@
1
- ---
2
- license: afl-3.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: afl-3.0
3
+ pipeline_tag: text-classification
4
+ tags:
5
+ - art
6
+ ---
7
+ {
8
+ "corpus_1": "Текст из первого корпуса",
9
+ "corpus_2": "Текст из второго корпуса"
10
+ }
11
+ from transformers import pipeline
12
+
13
+ model_name = "gpt-2" # Или другая модель
14
+ text_generator = pipeline("text-generation", model=model_name)
15
+
16
+ poem = "Лучи заходящего солнца играют на воде, \nТени от деревьев растягиваются, как струны."
17
+
18
+ result = text_generator(poem, max_length=100)
19
+ print(result)