Spaces:
Paused
Paused
Pclanglais
commited on
Commit
•
204d0c2
1
Parent(s):
7bacf76
Update app.py
Browse files
app.py
CHANGED
@@ -110,28 +110,10 @@ with gr.Blocks(gr.themes.Soft()) as demo:
|
|
110 |
adapter_guidance_input = gr.Slider(minimum=0, maximum=2, label="Guidance Scale", value=1)
|
111 |
adapter_generate_button = gr.Button("Generate Image with Adapter")
|
112 |
|
113 |
-
|
114 |
-
|
115 |
generate_button.click(
|
116 |
generate_image,
|
117 |
inputs=[prompt_input, steps_input, guidance_input],
|
118 |
outputs=image_output
|
119 |
)
|
120 |
|
121 |
-
modify_button.click(
|
122 |
-
modify_image,
|
123 |
-
inputs=[image_output, brightness_slider, contrast_slider],
|
124 |
-
outputs=image_output
|
125 |
-
)
|
126 |
-
inpaint_button.click(
|
127 |
-
inpaint_image,
|
128 |
-
inputs=[inpaint_prompt_input, init_image_input, mask_image_input, inpaint_steps_input, inpaint_guidance_input],
|
129 |
-
outputs=image_output
|
130 |
-
)
|
131 |
-
adapter_generate_button.click(
|
132 |
-
generate_image_with_adapter,
|
133 |
-
inputs=[adapter_prompt_input, adapter_steps_input, adapter_guidance_input],
|
134 |
-
outputs=image_output
|
135 |
-
)
|
136 |
-
|
137 |
demo.launch()
|
|
|
110 |
adapter_guidance_input = gr.Slider(minimum=0, maximum=2, label="Guidance Scale", value=1)
|
111 |
adapter_generate_button = gr.Button("Generate Image with Adapter")
|
112 |
|
|
|
|
|
113 |
generate_button.click(
|
114 |
generate_image,
|
115 |
inputs=[prompt_input, steps_input, guidance_input],
|
116 |
outputs=image_output
|
117 |
)
|
118 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
demo.launch()
|