lichorosario commited on
Commit
923aa33
·
verified ·
1 Parent(s): 5f05ecc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -298,7 +298,15 @@ def run_lora(prompt, cfg_scale, steps, selected_index, randomize_seed, seed, asp
298
  )
299
 
300
  # Formatear para Gallery: (img, "Seed: N")
301
- images_for_gallery = [(img, f"Seed: {s}") for (img, s) in pairs]
 
 
 
 
 
 
 
 
302
 
303
  # Debe devolver DOS valores porque outputs=[result, seed]
304
  return images_for_gallery, seed
 
298
  )
299
 
300
  # Formatear para Gallery: (img, "Seed: N")
301
+ #images_for_gallery = [(img, f"Seed: {s}") for (img, s) in pairs]
302
+ images_for_gallery = [
303
+ (
304
+ img,
305
+ f"<div style='cursor:pointer;color:#ccc' onclick='navigator.clipboard.writeText(\"{s}\");alert(\"Seed {s} copied!\")'>Seed: {s}</div>"
306
+ )
307
+ for (img, s) in pairs
308
+ ]
309
+
310
 
311
  # Debe devolver DOS valores porque outputs=[result, seed]
312
  return images_for_gallery, seed