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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -361,7 +361,6 @@ def add_custom_lora(custom_lora, selected_indices):
361
  if existing_item_index is None:
362
  if(repo.endswith(".safetensors") and repo.startswith("http")):
363
  repo = download_file(repo)
364
-
365
  new_item = {
366
  "image": image if image is not None else "",
367
  "title": title,
@@ -390,11 +389,11 @@ def add_custom_lora(custom_lora, selected_indices):
390
  lora_image_2 = None
391
  if len(selected_indices) >= 1:
392
  lora1 = loras[selected_indices[0]]
393
- selected_info_1 = f"### LoRA 1 Selected: [{lora1['title']}]({lora1['repo']}) ✨"
394
  lora_image_1 = lora1['image']
395
  if len(selected_indices) >= 2:
396
  lora2 = loras[selected_indices[1]]
397
- selected_info_2 = f"### LoRA 2 Selected: [{lora2['title']}]({lora2['repo']}) ✨"
398
  lora_image_2 = lora2['image']
399
  print("Chegou no final")
400
  return (
 
361
  if existing_item_index is None:
362
  if(repo.endswith(".safetensors") and repo.startswith("http")):
363
  repo = download_file(repo)
 
364
  new_item = {
365
  "image": image if image is not None else "",
366
  "title": title,
 
389
  lora_image_2 = None
390
  if len(selected_indices) >= 1:
391
  lora1 = loras[selected_indices[0]]
392
+ selected_info_1 = f"### LoRA 1 Selected: {lora1['title']} ✨"
393
  lora_image_1 = lora1['image']
394
  if len(selected_indices) >= 2:
395
  lora2 = loras[selected_indices[1]]
396
+ selected_info_2 = f"### LoRA 2 Selected: {lora2['title']} ✨"
397
  lora_image_2 = lora2['image']
398
  print("Chegou no final")
399
  return (