multimodalart HF staff commited on
Commit
c9d95ee
1 Parent(s): 8bf8509

For the case of swapping examples

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -271,6 +271,7 @@ def swap_visibilities(input_image,
271
  sega_concepts_counter
272
 
273
  ):
 
274
  concept1_update = update_display_concept("Remove" if neg_guidance_1 else "Add", edit_concept_1, neg_guidance_1, sega_concepts_counter)
275
  if(edit_concept_2 != ""):
276
  concept2_update = update_display_concept("Remove" if neg_guidance_2 else "Add", edit_concept_2, neg_guidance_2, sega_concepts_counter+1)
 
271
  sega_concepts_counter
272
 
273
  ):
274
+ sega_concepts_counter=0
275
  concept1_update = update_display_concept("Remove" if neg_guidance_1 else "Add", edit_concept_1, neg_guidance_1, sega_concepts_counter)
276
  if(edit_concept_2 != ""):
277
  concept2_update = update_display_concept("Remove" if neg_guidance_2 else "Add", edit_concept_2, neg_guidance_2, sega_concepts_counter+1)