Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files
index.py
CHANGED
|
@@ -71,7 +71,7 @@ def img2imgstarter(prompt):
|
|
| 71 |
|
| 72 |
def main(text1, text2, prompt, dropdown_value, image_input):
|
| 73 |
|
| 74 |
-
if
|
| 75 |
starter_image_pil = Image.fromarray(image_input.astype('uint8'))
|
| 76 |
|
| 77 |
# Resize the starter image if either dimension is larger than 768 pixels
|
|
|
|
| 71 |
|
| 72 |
def main(text1, text2, prompt, dropdown_value, image_input):
|
| 73 |
|
| 74 |
+
if dropdown_value=="prompt+image":
|
| 75 |
starter_image_pil = Image.fromarray(image_input.astype('uint8'))
|
| 76 |
|
| 77 |
# Resize the starter image if either dimension is larger than 768 pixels
|