Update README.md
Browse files
README.md
CHANGED
|
@@ -19,11 +19,11 @@ locations = ["Hawkins National Laboratory", "Mirkwood Forest", "The Upside Down"
|
|
| 19 |
# Generate a random prompt for the model
|
| 20 |
prompt = f"A photorealistic portrait of a Stranger Things OC named {random.choice(names)} with {random.choice(traits)} eyes and {random.choice(traits)} hair. The OC is standing in {random.choice(locations)}."
|
| 21 |
|
| 22 |
-
#
|
| 23 |
image = model.generate_image(prompt)
|
| 24 |
|
| 25 |
-
#
|
| 26 |
image.save("oc.png")
|
| 27 |
|
| 28 |
-
#
|
| 29 |
Image.open("oc.png").show()
|
|
|
|
| 19 |
# Generate a random prompt for the model
|
| 20 |
prompt = f"A photorealistic portrait of a Stranger Things OC named {random.choice(names)} with {random.choice(traits)} eyes and {random.choice(traits)} hair. The OC is standing in {random.choice(locations)}."
|
| 21 |
|
| 22 |
+
#Generate the image
|
| 23 |
image = model.generate_image(prompt)
|
| 24 |
|
| 25 |
+
#Save the image to a file
|
| 26 |
image.save("oc.png")
|
| 27 |
|
| 28 |
+
#Display the image
|
| 29 |
Image.open("oc.png").show()
|