Linoy Tsaban commited on
Commit
fa3b47c
1 Parent(s): bbb4584

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -150,7 +150,7 @@ def edit(input_image,
150
  zs = gr.State(value=zs_tensor)
151
  do_inversion = False
152
 
153
- if image_caption == tar_prompt: # if image caption was not changed, run pure sega
154
  tar_prompt = ""
155
 
156
  if edit_concept_1 != "" or edit_concept_2 != "" or edit_concept_3 != "":
 
150
  zs = gr.State(value=zs_tensor)
151
  do_inversion = False
152
 
153
+ if image_caption.lower() == tar_prompt.lower(): # if image caption was not changed, run pure sega
154
  tar_prompt = ""
155
 
156
  if edit_concept_1 != "" or edit_concept_2 != "" or edit_concept_3 != "":