Leeps commited on
Commit
b4c8f45
1 Parent(s): 7a63442

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. index.py +1 -1
index.py CHANGED
@@ -71,7 +71,7 @@ def img2imgstarter(prompt):
71
 
72
  def main(text1, text2, prompt, dropdown_value, image_input):
73
 
74
- if image_input is not None:
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