Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -228,7 +228,7 @@ def create_intervene_part(pipe: HookedStableDiffusionXLPipeline, saes_dict, mean
|
|
228 |
prompt_field = gr.Textbox(lines=1, label="Enter prompt here", value="A dog plays with a ball, cartoon", elem_id="prompt_input")
|
229 |
num_steps = gr.Number(value=1, label="Number of steps", minimum=1, maximum=4, elem_id="num_steps", precision=0)
|
230 |
with gr.Row():
|
231 |
-
|
232 |
button_generate = gr.Button("Generate", elem_id="generate_button")
|
233 |
with gr.Column(scale=3):
|
234 |
# Intervention column
|
@@ -255,11 +255,11 @@ def create_intervene_part(pipe: HookedStableDiffusionXLPipeline, saes_dict, mean
|
|
255 |
with gr.Column():
|
256 |
# Input image
|
257 |
i_image = gr.Sketchpad(
|
258 |
-
|
259 |
layers=False, transforms=[], placeholder="Generate and paint!",
|
260 |
brush=gr.Brush(default_size=64, color_mode="fixed", colors=['black']),
|
261 |
container=False,
|
262 |
-
|
263 |
label="Input Image")
|
264 |
clear_button = gr.Button("Clear")
|
265 |
clear_button.click(lambda x: x, [image_state], [i_image])
|
|
|
228 |
prompt_field = gr.Textbox(lines=1, label="Enter prompt here", value="A dog plays with a ball, cartoon", elem_id="prompt_input")
|
229 |
num_steps = gr.Number(value=1, label="Number of steps", minimum=1, maximum=4, elem_id="num_steps", precision=0)
|
230 |
with gr.Row():
|
231 |
+
Gnerate button
|
232 |
button_generate = gr.Button("Generate", elem_id="generate_button")
|
233 |
with gr.Column(scale=3):
|
234 |
# Intervention column
|
|
|
255 |
with gr.Column():
|
256 |
# Input image
|
257 |
i_image = gr.Sketchpad(
|
258 |
+
height=610,
|
259 |
layers=False, transforms=[], placeholder="Generate and paint!",
|
260 |
brush=gr.Brush(default_size=64, color_mode="fixed", colors=['black']),
|
261 |
container=False,
|
262 |
+
canvas_size=(512, 512),
|
263 |
label="Input Image")
|
264 |
clear_button = gr.Button("Clear")
|
265 |
clear_button.click(lambda x: x, [image_state], [i_image])
|