multimodalart HF staff commited on
Commit
73690ed
1 Parent(s): 6c6858a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -185,8 +185,8 @@ def randomize_loras(selected_indices):
185
  selected_indices = random.sample(range(len(loras)), 2)
186
  lora1 = loras[selected_indices[0]]
187
  lora2 = loras[selected_indices[1]]
188
- selected_info_1 = f"### LoRA 1 Selected: [{lora1['title']}]({lora1['repo']}) ✨"
189
- selected_info_2 = f"### LoRA 2 Selected: [{lora2['title']}]({lora2['repo']}) ✨"
190
  lora_scale_1 = 0.95
191
  lora_scale_2 = 0.95
192
  lora_image_1 = lora1['image']
@@ -400,7 +400,7 @@ def add_custom_lora(custom_lora, selected_indices):
400
  print("Chegou no final")
401
  return (
402
  gr.update(value=gallery_items),
403
- selected_info_1,
404
  selected_info_2,
405
  selected_indices,
406
  lora_scale_1,
 
185
  selected_indices = random.sample(range(len(loras)), 2)
186
  lora1 = loras[selected_indices[0]]
187
  lora2 = loras[selected_indices[1]]
188
+ selected_info_1 = f"### LoRA 1 Selected: [{lora1['title']}](https://huggingface.co/{lora1['repo']}) ✨"
189
+ selected_info_2 = f"### LoRA 2 Selected: [{lora2['title']}](https://huggingface.co/{lora2['repo']}) ✨"
190
  lora_scale_1 = 0.95
191
  lora_scale_2 = 0.95
192
  lora_image_1 = lora1['image']
 
400
  print("Chegou no final")
401
  return (
402
  gr.update(value=gallery_items),
403
+ selected_info_1,
404
  selected_info_2,
405
  selected_indices,
406
  lora_scale_1,