Spaces:
No application file
No application file
File size: 355 Bytes
5035392 |
1 2 3 4 5 6 7 8 9 10 11 |
from transformers import pipeline
# Initialize the text generation pipeline with the specified model
generator = pipeline('text-generation', model='KoboldAI/OPT-13B-Erebus')
# Generate text
generated_text = generator("Welcome Captain Janeway, I apologize for the delay.", do_sample=True, min_length=50)
# Print the generated text
print(generated_text)
|