Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ pipe_prior_redux = FluxPriorReduxPipeline.from_pretrained(
|
|
35 |
examples = [[Image.open("mona_lisa.jpg"), "pink hair, at the beach", None, "", 0.035, 1., 1., 1., 1., 0, False],
|
36 |
[Image.open("1665_Girl_with_a_Pearl_Earring.jpg"), "", Image.open("dali_example.jpg"), "", 0.08, .4, .6, .33, 1., 1912857110, False]]
|
37 |
|
38 |
-
@spaces.GPU
|
39 |
def infer(control_image, prompt, image_2, prompt_2, reference_scale= 0.03 ,
|
40 |
prompt_embeds_scale_1 =1, prompt_embeds_scale_2 =1, pooled_prompt_embeds_scale_1 =1, pooled_prompt_embeds_scale_2 =1,
|
41 |
seed=42, randomize_seed=False, width=1024, height=1024,
|
@@ -181,7 +181,7 @@ with gr.Blocks(css=css) as demo:
|
|
181 |
guidance_scale = gr.Slider(
|
182 |
label="Guidance Scale",
|
183 |
minimum=1,
|
184 |
-
maximum=
|
185 |
step=0.1,
|
186 |
value=3.5,
|
187 |
)
|
|
|
35 |
examples = [[Image.open("mona_lisa.jpg"), "pink hair, at the beach", None, "", 0.035, 1., 1., 1., 1., 0, False],
|
36 |
[Image.open("1665_Girl_with_a_Pearl_Earring.jpg"), "", Image.open("dali_example.jpg"), "", 0.08, .4, .6, .33, 1., 1912857110, False]]
|
37 |
|
38 |
+
@spaces.GPU()
|
39 |
def infer(control_image, prompt, image_2, prompt_2, reference_scale= 0.03 ,
|
40 |
prompt_embeds_scale_1 =1, prompt_embeds_scale_2 =1, pooled_prompt_embeds_scale_1 =1, pooled_prompt_embeds_scale_2 =1,
|
41 |
seed=42, randomize_seed=False, width=1024, height=1024,
|
|
|
181 |
guidance_scale = gr.Slider(
|
182 |
label="Guidance Scale",
|
183 |
minimum=1,
|
184 |
+
maximum=40,
|
185 |
step=0.1,
|
186 |
value=3.5,
|
187 |
)
|