add default value and tips for lora parameters
Browse files
app.py
CHANGED
@@ -185,16 +185,19 @@ with gr.Blocks() as demo:
|
|
185 |
|
186 |
with gr.Accordion("Lora Settings", open=True):
|
187 |
lora_path = gr.Textbox(
|
188 |
-
label="Lora path",
|
189 |
show_label=True,
|
190 |
max_lines=1,
|
191 |
-
placeholder="Enter your
|
|
|
|
|
192 |
)
|
193 |
lora_weights = gr.Textbox(
|
194 |
label="Lora weights",
|
195 |
show_label=True,
|
196 |
max_lines=1,
|
197 |
placeholder="Enter your lora weights name",
|
|
|
198 |
)
|
199 |
lora_scale = gr.Slider(
|
200 |
label="Lora scale",
|
@@ -202,7 +205,7 @@ with gr.Blocks() as demo:
|
|
202 |
minimum=0,
|
203 |
maximum=1,
|
204 |
step=0.1,
|
205 |
-
value=0.
|
206 |
)
|
207 |
|
208 |
with gr.Accordion("Advanced Settings", open=True):
|
|
|
185 |
|
186 |
with gr.Accordion("Lora Settings", open=True):
|
187 |
lora_path = gr.Textbox(
|
188 |
+
label="Lora model path",
|
189 |
show_label=True,
|
190 |
max_lines=1,
|
191 |
+
placeholder="Enter your model path",
|
192 |
+
info="Currently, only LoRA hosted on Hugging Face'model can be loaded properly.",
|
193 |
+
value="XLabs-AI/flux-lora-collection"
|
194 |
)
|
195 |
lora_weights = gr.Textbox(
|
196 |
label="Lora weights",
|
197 |
show_label=True,
|
198 |
max_lines=1,
|
199 |
placeholder="Enter your lora weights name",
|
200 |
+
value="anime_lora.safetensors"
|
201 |
)
|
202 |
lora_scale = gr.Slider(
|
203 |
label="Lora scale",
|
|
|
205 |
minimum=0,
|
206 |
maximum=1,
|
207 |
step=0.1,
|
208 |
+
value=0.9,
|
209 |
)
|
210 |
|
211 |
with gr.Accordion("Advanced Settings", open=True):
|