Keltezaa commited on
Commit
7bed097
·
verified ·
1 Parent(s): 6a576af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -106,8 +106,8 @@ def update_selection(evt: gr.SelectData, selected_indices, loras_state, width, h
106
  selected_info_2 = "Select a LoRA 2"
107
  lora_scale_1 = 1.15
108
  lora_scale_2 = 1.15
109
- lora_image_1 = "/valid/path/to/default/image.png" # Updated to a valid image path
110
- lora_image_2 = "/valid/path/to/default/image.png" # Updated to a valid image path
111
  if len(selected_indices) >= 1:
112
  lora1 = loras_state[selected_indices[0]]
113
  selected_info_1 = f"### LoRA 1 Selected: [{lora1['title']}](https://huggingface.co/{lora1['repo']}) ✨"
@@ -188,7 +188,7 @@ def add_custom_lora(custom_lora, selected_indices, current_loras, gallery):
188
  if repo.endswith(".safetensors") and repo.startswith("http"):
189
  repo = download_file(repo)
190
  new_item = {
191
- "image": image if image else "/valid/path/to/default/image.png", # Updated to a valid image path
192
  "title": title,
193
  "repo": repo,
194
  "weights": path,
 
106
  selected_info_2 = "Select a LoRA 2"
107
  lora_scale_1 = 1.15
108
  lora_scale_2 = 1.15
109
+ lora_image_1 = "/valid/path/to/default/image.png" # Ensure this path is valid
110
+ lora_image_2 = "/valid/path/to/default/image.png" # Ensure this path is valid
111
  if len(selected_indices) >= 1:
112
  lora1 = loras_state[selected_indices[0]]
113
  selected_info_1 = f"### LoRA 1 Selected: [{lora1['title']}](https://huggingface.co/{lora1['repo']}) ✨"
 
188
  if repo.endswith(".safetensors") and repo.startswith("http"):
189
  repo = download_file(repo)
190
  new_item = {
191
+ "image": image if image else "/valid/path/to/default/image.png", # Ensure this path is valid
192
  "title": title,
193
  "repo": repo,
194
  "weights": path,