Effortless LLM App Deployment on AWS: A Step-by-Step Guide
Hans Moritz Hafen
1 min read
import random
class PromptGenerator:
def __init__(self):
self.topics = [
"technology", "health", "environment", "education", "entertainment",
"travel", "science", "history", "art", "politics"
]
self.formats = [
"essay", "blog post", "short story", "research paper", "poem",
"interview", "news article", "tutorial", "review", "speech"
]
self.actions = [
"describe", "analyze", "discuss", "compare", "argue",
"evaluate", "investigate", "explore", "summarize", "explain"
]
def generate_prompt(self):
topic = random.choice(self.topics)
format = random.choice(self.formats)
action = random.choice(self.actions)
return f"{action.capitalize()} the {topic} in the form of a {format}."
if __name__ == "__main__":
prompt_generator = PromptGenerator()
print(prompt_generator.generate_prompt())
0
Subscribe to my newsletter
Read articles from Hans Moritz Hafen directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by