Created
September 25, 2021 18:06
-
-
Save robgon-art/8bdaf6593ae4c1d7ed4037064969e818 to your computer and use it in GitHub Desktop.
Generate a Prompt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
index = random.randint(0, len(styles)-1) | |
style = styles[index].capitalize() | |
prompt = style + " painting" | |
r = random.random() | |
if r < 1.0/3.0: | |
series = "shapes" | |
index = random.randint(0, len(shapes)-1) | |
subject = " with " + shapes[index] | |
prompt += subject | |
elif r < 2.0/3.0: | |
series = "things" | |
index = random.randint(0, len(things)-1) | |
subject = things[index] | |
prompt += " of " + subject | |
else: | |
series = "places" | |
index = random.randint(0, len(places)-1) | |
subject = places[index] | |
prompt += " of " + subject |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
g