1inkusFace commited on
Commit
f2f7398
·
verified ·
1 Parent(s): ef032f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -360,6 +360,7 @@ def generate_30(
360
  latent_file_5_scale: float = 1.0,
361
  samples=1,
362
  progress=gr.Progress(track_tqdm=True) # Add progress as a keyword argument
 
363
  ):
364
  global captioner_2
365
  captioner2=captioner_2
@@ -607,7 +608,7 @@ def generate_60(
607
  pil_image_3=sd_image_c,
608
  pil_image_4=sd_image_d,
609
  pil_image_5=sd_image_e,
610
- prompt=prompt+' '+expanded_1,
611
  negative_prompt=negative_prompt,
612
  text_scale=text_scale,
613
  ip_scale=ip_scale,
@@ -676,8 +677,6 @@ def generate_90(
676
  caption.append(cap)
677
  #caption.append(captioner_3(sd_image_a))
678
  caption_2.append(captioning(sd_image_a))
679
- global image_1_text
680
- image_1_text=cap
681
  if latent_file_2 is not None: # Check if a latent file is provided
682
  sd_image_b = Image.open(latent_file_2.name).convert('RGB')
683
  #sd_image_b.resize((height,width), Image.LANCZOS)
@@ -760,7 +759,7 @@ def generate_90(
760
  pil_image_3=sd_image_c,
761
  pil_image_4=sd_image_d,
762
  pil_image_5=sd_image_e,
763
- prompt=prompt+' '+expanded_1,
764
  negative_prompt=negative_prompt,
765
  text_scale=text_scale,
766
  ip_scale=ip_scale,
 
360
  latent_file_5_scale: float = 1.0,
361
  samples=1,
362
  progress=gr.Progress(track_tqdm=True) # Add progress as a keyword argument
363
+
364
  ):
365
  global captioner_2
366
  captioner2=captioner_2
 
608
  pil_image_3=sd_image_c,
609
  pil_image_4=sd_image_d,
610
  pil_image_5=sd_image_e,
611
+ prompt=new_prompt,
612
  negative_prompt=negative_prompt,
613
  text_scale=text_scale,
614
  ip_scale=ip_scale,
 
677
  caption.append(cap)
678
  #caption.append(captioner_3(sd_image_a))
679
  caption_2.append(captioning(sd_image_a))
 
 
680
  if latent_file_2 is not None: # Check if a latent file is provided
681
  sd_image_b = Image.open(latent_file_2.name).convert('RGB')
682
  #sd_image_b.resize((height,width), Image.LANCZOS)
 
759
  pil_image_3=sd_image_c,
760
  pil_image_4=sd_image_d,
761
  pil_image_5=sd_image_e,
762
+ prompt=new_prompt,
763
  negative_prompt=negative_prompt,
764
  text_scale=text_scale,
765
  ip_scale=ip_scale,