from transformers import pipeline

# Initialize the text generation pipeline
text_generator = pipeline('text-generation', model='EleutherAI/gpt-neo-2.7B')

# Generate text with the pipeline
generated_text = text_generator("In a galaxy far far away", max_length=100, num_return_sequences=1)[0]['generated_text']
print(generated_text)