Skip to content

Instantly share code, notes, and snippets.

@robgon-art
Created September 25, 2021 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robgon-art/8bdaf6593ae4c1d7ed4037064969e818 to your computer and use it in GitHub Desktop.
Save robgon-art/8bdaf6593ae4c1d7ed4037064969e818 to your computer and use it in GitHub Desktop.
Generate a Prompt
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
@mdjunaid11
Copy link

g

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment