kishlaykumar1995
commited on
Commit
•
fa08a6a
1
Parent(s):
8f14a6a
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ def infer(prompt, negative_prompt, seed, randomize_seed, width, height, guidance
|
|
40 |
width=width,
|
41 |
num_inference_steps=num_inference_steps,
|
42 |
generator=generator,
|
43 |
-
joint_attention_kwargs={"
|
44 |
)
|
45 |
|
46 |
|
@@ -121,10 +121,10 @@ with gr.Blocks(css=css) as demo:
|
|
121 |
|
122 |
lora_scale = gr.Slider(
|
123 |
label="Lora Scale",
|
124 |
-
minimum
|
125 |
-
maximum=
|
126 |
step=0.1,
|
127 |
-
value=
|
128 |
)
|
129 |
|
130 |
with gr.Row():
|
|
|
40 |
width=width,
|
41 |
num_inference_steps=num_inference_steps,
|
42 |
generator=generator,
|
43 |
+
joint_attention_kwargs={"scale": lora_scale}
|
44 |
)
|
45 |
|
46 |
|
|
|
121 |
|
122 |
lora_scale = gr.Slider(
|
123 |
label="Lora Scale",
|
124 |
+
minimum=-1,
|
125 |
+
maximum=2,
|
126 |
step=0.1,
|
127 |
+
value=1.2, #Replace with defaults that work for your model
|
128 |
)
|
129 |
|
130 |
with gr.Row():
|