Spaces:
No application file
No application file
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) | |