{ "corpus_1": "Текст из первого корпуса", "corpus_2": "Текст из второго корпуса" } from transformers import pipeline
model_name = "gpt-2" # Или другая модель text_generator = pipeline("text-generation", model=model_name)
poem = "Лучи заходящего солнца играют на воде, \nТени от деревьев растягиваются, как струны."
result = text_generator(poem, max_length=100) print(result)
Inference Providers
NEW
This model is not currently available via any of the supported third-party Inference Providers, and
HF Inference API was unable to determine this model's library.