AbstractPhil commited on
Commit
0191a91
Β·
1 Parent(s): 23d07c9
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -67,7 +67,8 @@ def plot_heat(mat, title):
67
  plt.savefig(buf, format="png", bbox_inches='tight')
68
  buf.seek(0)
69
  plt.close(fig)
70
- return buf
 
71
 
72
  # ─── SDXL Text Encoding ───────────────────────────────────────
73
  def encode_sdxl_prompt(prompt, negative_prompt=""):
@@ -341,7 +342,14 @@ with gr.Blocks(title="SDXL Dual Shunt Adapter", theme=gr.themes.Soft()) as demo:
341
  prompt, negative_prompt, adapter_l, adapter_g, strength, noise, gate_prob,
342
  use_anchor, steps, cfg_scale, scheduler_name, width, height, seed
343
  ],
344
- outputs=[out_img, delta_l, gate_l, delta_g, gate_g, stats_l, stats_g]
 
 
 
 
 
 
 
345
  )
346
 
347
  if __name__ == "__main__":
 
67
  plt.savefig(buf, format="png", bbox_inches='tight')
68
  buf.seek(0)
69
  plt.close(fig)
70
+ pil_image = Image.open(buf)
71
+ return pil_image
72
 
73
  # ─── SDXL Text Encoding ───────────────────────────────────────
74
  def encode_sdxl_prompt(prompt, negative_prompt=""):
 
342
  prompt, negative_prompt, adapter_l, adapter_g, strength, noise, gate_prob,
343
  use_anchor, steps, cfg_scale, scheduler_name, width, height, seed
344
  ],
345
+ outputs=[
346
+ out_img,
347
+ delta_l,
348
+ gate_l,
349
+ delta_g,
350
+ gate_g,
351
+ stats_l,
352
+ stats_g]
353
  )
354
 
355
  if __name__ == "__main__":