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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -110,11 +110,11 @@ def update_selection(evt: gr.SelectData, selected_indices, width, height):
110
  lora_image_2 = None
111
  if len(selected_indices) >= 1:
112
  lora1 = loras[selected_indices[0]]
113
- selected_info_1 = f"### LoRA 1 Selected: [{lora1['title']}]({lora1['repo']}) ✨"
114
  lora_image_1 = lora1['image']
115
  if len(selected_indices) >= 2:
116
  lora2 = loras[selected_indices[1]]
117
- selected_info_2 = f"### LoRA 2 Selected: [{lora2['title']}]({lora2['repo']}) ✨"
118
  lora_image_2 = lora2['image']
119
 
120
  # Update prompt placeholder based on last selected LoRA
 
110
  lora_image_2 = None
111
  if len(selected_indices) >= 1:
112
  lora1 = loras[selected_indices[0]]
113
+ selected_info_1 = f"### LoRA 1 Selected: [{lora1['title']}](https://huggingface.co/{lora1['repo']}) ✨"
114
  lora_image_1 = lora1['image']
115
  if len(selected_indices) >= 2:
116
  lora2 = loras[selected_indices[1]]
117
+ selected_info_2 = f"### LoRA 2 Selected: [{lora2['title']}](https://huggingface.co/{lora2['repo']}) ✨"
118
  lora_image_2 = lora2['image']
119
 
120
  # Update prompt placeholder based on last selected LoRA