multimodalart HF staff commited on
Commit
a0f2b49
1 Parent(s): b4052dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -1
app.py CHANGED
@@ -396,6 +396,16 @@ def add_custom_lora(custom_lora, selected_indices):
396
  selected_info_2 = f"### LoRA 2 Selected: {lora2['title']} ✨"
397
  lora_image_2 = lora2['image']
398
  print("Chegou no final")
 
 
 
 
 
 
 
 
 
 
399
  return (
400
  gr.update(value=gallery_items),
401
  selected_info_1,
@@ -450,7 +460,8 @@ def remove_custom_lora(selected_indices):
450
  lora_image_1,
451
  lora_image_2
452
  )
453
-
 
454
  run_lora.zerogpu = True
455
 
456
  css = '''
@@ -569,6 +580,8 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css, delete_cache=(60, 3600)) as app:
569
  add_custom_lora,
570
  inputs=[custom_lora, selected_indices],
571
  outputs=[gallery, selected_info_1, selected_info_2, selected_indices, lora_scale_1, lora_scale_2, lora_image_1, lora_image_2]
 
 
572
  )
573
  remove_custom_lora_button.click(
574
  remove_custom_lora,
 
396
  selected_info_2 = f"### LoRA 2 Selected: {lora2['title']} ✨"
397
  lora_image_2 = lora2['image']
398
  print("Chegou no final")
399
+ print (
400
+ gr.update(value=gallery_items),
401
+ selected_info_1,
402
+ selected_info_2,
403
+ selected_indices,
404
+ lora_scale_1,
405
+ lora_scale_2,
406
+ lora_image_1,
407
+ lora_image_2
408
+ )
409
  return (
410
  gr.update(value=gallery_items),
411
  selected_info_1,
 
460
  lora_image_1,
461
  lora_image_2
462
  )
463
+ def run_test():
464
+ print("testing")
465
  run_lora.zerogpu = True
466
 
467
  css = '''
 
580
  add_custom_lora,
581
  inputs=[custom_lora, selected_indices],
582
  outputs=[gallery, selected_info_1, selected_info_2, selected_indices, lora_scale_1, lora_scale_2, lora_image_1, lora_image_2]
583
+ ).success(
584
+ run_test
585
  )
586
  remove_custom_lora_button.click(
587
  remove_custom_lora,