Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ pipe_prior_redux = FluxPriorReduxPipeline.from_pretrained(
|
|
| 29 |
).to("cuda")
|
| 30 |
|
| 31 |
examples = [[Image.open("mona_lisa.jpg"), "pink hair, at the beach", None, "", 0.035, 1., 1., 1., 1., 0],
|
| 32 |
-
[Image.open("1665_Girl_with_a_Pearl_Earring.jpg"), "", Image.open("dali_example.jpg"), "", 0.
|
| 33 |
|
| 34 |
@spaces.GPU
|
| 35 |
def infer(control_image, prompt, image_2, prompt_2, reference_scale= 0.03 ,
|
|
@@ -135,28 +135,28 @@ Now with added support:
|
|
| 135 |
label="prompt embeds scale 1st image",
|
| 136 |
minimum=0,
|
| 137 |
maximum=1.5,
|
| 138 |
-
step=0.
|
| 139 |
value=1,
|
| 140 |
)
|
| 141 |
prompt_embeds_scale_2 = gr.Slider(
|
| 142 |
label="prompt embeds scale 2nd image",
|
| 143 |
minimum=0,
|
| 144 |
maximum=1.5,
|
| 145 |
-
step=0.
|
| 146 |
value=1,
|
| 147 |
)
|
| 148 |
pooled_prompt_embeds_scale_1 = gr.Slider(
|
| 149 |
label="pooled prompt embeds scale 1nd image",
|
| 150 |
minimum=0,
|
| 151 |
maximum=1.5,
|
| 152 |
-
step=0.
|
| 153 |
value=1,
|
| 154 |
)
|
| 155 |
pooled_prompt_embeds_scale_2 = gr.Slider(
|
| 156 |
label="pooled prompt embeds scale 2nd image",
|
| 157 |
minimum=0,
|
| 158 |
maximum=1.5,
|
| 159 |
-
step=0.
|
| 160 |
value=1,
|
| 161 |
)
|
| 162 |
|
|
|
|
| 29 |
).to("cuda")
|
| 30 |
|
| 31 |
examples = [[Image.open("mona_lisa.jpg"), "pink hair, at the beach", None, "", 0.035, 1., 1., 1., 1., 0],
|
| 32 |
+
[Image.open("1665_Girl_with_a_Pearl_Earring.jpg"), "", Image.open("dali_example.jpg"), "", 0.08, .4, .55, .33, 1., 707196161]]
|
| 33 |
|
| 34 |
@spaces.GPU
|
| 35 |
def infer(control_image, prompt, image_2, prompt_2, reference_scale= 0.03 ,
|
|
|
|
| 135 |
label="prompt embeds scale 1st image",
|
| 136 |
minimum=0,
|
| 137 |
maximum=1.5,
|
| 138 |
+
step=0.01,
|
| 139 |
value=1,
|
| 140 |
)
|
| 141 |
prompt_embeds_scale_2 = gr.Slider(
|
| 142 |
label="prompt embeds scale 2nd image",
|
| 143 |
minimum=0,
|
| 144 |
maximum=1.5,
|
| 145 |
+
step=0.01,
|
| 146 |
value=1,
|
| 147 |
)
|
| 148 |
pooled_prompt_embeds_scale_1 = gr.Slider(
|
| 149 |
label="pooled prompt embeds scale 1nd image",
|
| 150 |
minimum=0,
|
| 151 |
maximum=1.5,
|
| 152 |
+
step=0.01,
|
| 153 |
value=1,
|
| 154 |
)
|
| 155 |
pooled_prompt_embeds_scale_2 = gr.Slider(
|
| 156 |
label="pooled prompt embeds scale 2nd image",
|
| 157 |
minimum=0,
|
| 158 |
maximum=1.5,
|
| 159 |
+
step=0.01,
|
| 160 |
value=1,
|
| 161 |
)
|
| 162 |
|