Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -168,7 +168,7 @@ with gr.Blocks(css=css) as demo:
|
|
168 |
with gr.Group(elem_id="group"):
|
169 |
x = gr.Slider(minimum=-3, value=0, maximum=3.5, step=0.1, elem_id="x", interactive=False)
|
170 |
#y = gr.Slider(minimum=-10, value=0, maximum=10, elem_id="y", interactive=False)
|
171 |
-
output_image = gr.Image(elem_id="image_out"
|
172 |
# with gr.Row():
|
173 |
# generate_butt = gr.Button("generate")
|
174 |
|
@@ -245,7 +245,7 @@ with gr.Blocks(css=css) as demo:
|
|
245 |
|
246 |
iterations.change(fn=reset_recalc_directions, outputs=[recalc_directions])
|
247 |
seed.change(fn=reset_recalc_directions, outputs=[recalc_directions])
|
248 |
-
x.change(fn=update_scales, inputs=[x, prompt, seed, steps, guidance_scale, avg_diff_x], outputs=[output_image])
|
249 |
# generate_butt_a.click(fn=update_scales, inputs=[x_a,y_a, prompt_a, seed_a, steps_a, guidance_scale_a, avg_diff_x, avg_diff_y, img2img_type, image, controlnet_conditioning_scale, ip_adapter_scale], outputs=[output_image_a])
|
250 |
# submit_a.click(fn=generate,
|
251 |
# inputs=[slider_x_a, slider_y_a, prompt_a, seed_a, iterations_a, steps_a, guidance_scale_a, x_concept_1, x_concept_2, y_concept_1, y_concept_2, avg_diff_x, avg_diff_y, img2img_type, image, controlnet_conditioning_scale, ip_adapter_scale],
|
|
|
168 |
with gr.Group(elem_id="group"):
|
169 |
x = gr.Slider(minimum=-3, value=0, maximum=3.5, step=0.1, elem_id="x", interactive=False)
|
170 |
#y = gr.Slider(minimum=-10, value=0, maximum=10, elem_id="y", interactive=False)
|
171 |
+
output_image = gr.Image(elem_id="image_out")
|
172 |
# with gr.Row():
|
173 |
# generate_butt = gr.Button("generate")
|
174 |
|
|
|
245 |
|
246 |
iterations.change(fn=reset_recalc_directions, outputs=[recalc_directions])
|
247 |
seed.change(fn=reset_recalc_directions, outputs=[recalc_directions])
|
248 |
+
x.change(fn=update_scales, inputs=[x, prompt, seed, steps, guidance_scale, avg_diff_x], outputs=[output_image], show_progress="hidden")
|
249 |
# generate_butt_a.click(fn=update_scales, inputs=[x_a,y_a, prompt_a, seed_a, steps_a, guidance_scale_a, avg_diff_x, avg_diff_y, img2img_type, image, controlnet_conditioning_scale, ip_adapter_scale], outputs=[output_image_a])
|
250 |
# submit_a.click(fn=generate,
|
251 |
# inputs=[slider_x_a, slider_y_a, prompt_a, seed_a, iterations_a, steps_a, guidance_scale_a, x_concept_1, x_concept_2, y_concept_1, y_concept_2, avg_diff_x, avg_diff_y, img2img_type, image, controlnet_conditioning_scale, ip_adapter_scale],
|