Update app.py
Browse files
app.py
CHANGED
@@ -282,7 +282,7 @@ def remove_lora_4(selected_indices, loras_state):
|
|
282 |
lora_image_4 = None
|
283 |
if len(selected_indices) >= 1:
|
284 |
lora1 = loras_state[selected_indices[0]]
|
285 |
-
selected_info_1 = f"###
|
286 |
lora_image_1 = lora1['image']
|
287 |
|
288 |
if len(selected_indices) >= 2:
|
@@ -493,8 +493,8 @@ def run_lora(prompt, cfg_scale, steps, selected_indices, lora_scale_1, lora_scal
|
|
493 |
low_cpu_mem_usage=True,
|
494 |
adapter_name=lora_name,
|
495 |
)
|
496 |
-
|
497 |
-
print("Loaded LoRAs:",
|
498 |
print("Adapter weights:", lora_weights)
|
499 |
|
500 |
pipe.set_adapters(lora_names, adapter_weights=lora_weights)
|
@@ -595,7 +595,7 @@ css = '''
|
|
595 |
font=[gr.themes.GoogleFont("Source Sans Pro"), "Arial", "sans-serif"]
|
596 |
with gr.Blocks(theme=gr.themes.Soft(font=font), css=css, delete_cache=(128, 256)) as app:
|
597 |
title = gr.HTML(
|
598 |
-
"""<h1><img src="https://huggingface.co/spaces/keltezaa/
|
599 |
elem_id="title",
|
600 |
)
|
601 |
loras_state = gr.State(loras)
|
|
|
282 |
lora_image_4 = None
|
283 |
if len(selected_indices) >= 1:
|
284 |
lora1 = loras_state[selected_indices[0]]
|
285 |
+
selected_info_1 = f"### Celebrity Selected: [{lora1['title']}](https://huggingface.co/{lora1['repo']}) ✨"
|
286 |
lora_image_1 = lora1['image']
|
287 |
|
288 |
if len(selected_indices) >= 2:
|
|
|
493 |
low_cpu_mem_usage=True,
|
494 |
adapter_name=lora_name,
|
495 |
)
|
496 |
+
print("Base Model:", base_model)
|
497 |
+
print("Loaded LoRAs:", selected_indices)
|
498 |
print("Adapter weights:", lora_weights)
|
499 |
|
500 |
pipe.set_adapters(lora_names, adapter_weights=lora_weights)
|
|
|
595 |
font=[gr.themes.GoogleFont("Source Sans Pro"), "Arial", "sans-serif"]
|
596 |
with gr.Blocks(theme=gr.themes.Soft(font=font), css=css, delete_cache=(128, 256)) as app:
|
597 |
title = gr.HTML(
|
598 |
+
"""<h1><img src="https://huggingface.co/spaces/keltezaa/Celebrity_LoRa_Mix/resolve/main/solo-traveller_16875043.png" alt="LoRA">Celebrity_LoRa_Mix</h1>""",
|
599 |
elem_id="title",
|
600 |
)
|
601 |
loras_state = gr.State(loras)
|