Spaces:
Runtime error
Runtime error
Commit
•
c126311
1
Parent(s):
aad2ddd
Update app.py
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ def run_lora(prompt, cfg_scale, steps, selected_index, randomize_seed, seed, wid
|
|
75 |
trigger_word = selected_lora["trigger_word"]
|
76 |
|
77 |
# Load LoRA weights
|
78 |
-
with calculateDuration("Loading LoRA weights"):
|
79 |
if "weights" in selected_lora:
|
80 |
pipe.load_lora_weights(lora_path, weight_name=selected_lora["weights"])
|
81 |
else:
|
@@ -135,7 +135,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as app:
|
|
135 |
with gr.Row():
|
136 |
randomize_seed = gr.Checkbox(True, label="Randomize seed")
|
137 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0, randomize=True)
|
138 |
-
lora_scale = gr.Slider(label="LoRA Scale", minimum=0, maximum=1, step=0.01, value=0.
|
139 |
|
140 |
gallery.select(update_selection, outputs=[prompt, selected_info, selected_index])
|
141 |
|
|
|
75 |
trigger_word = selected_lora["trigger_word"]
|
76 |
|
77 |
# Load LoRA weights
|
78 |
+
with calculateDuration(f"Loading LoRA weights for {selected_lora}"):
|
79 |
if "weights" in selected_lora:
|
80 |
pipe.load_lora_weights(lora_path, weight_name=selected_lora["weights"])
|
81 |
else:
|
|
|
135 |
with gr.Row():
|
136 |
randomize_seed = gr.Checkbox(True, label="Randomize seed")
|
137 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0, randomize=True)
|
138 |
+
lora_scale = gr.Slider(label="LoRA Scale", minimum=0, maximum=1, step=0.01, value=0.95)
|
139 |
|
140 |
gallery.select(update_selection, outputs=[prompt, selected_info, selected_index])
|
141 |
|