hysts HF staff commited on
Commit
206fc98
1 Parent(s): 910b076
Files changed (1) hide show
  1. app.py +13 -12
app.py CHANGED
@@ -130,18 +130,19 @@ with gr.Blocks() as demo:
130
  gr.Markdown(DESCRIPTION)
131
  with gr.Row():
132
  with gr.Column():
133
- image = gr.Image(
134
- source="canvas",
135
- tool="sketch",
136
- type="pil",
137
- image_mode="1",
138
- invert_colors=True,
139
- shape=(1024, 1024),
140
- brush_radius=4,
141
- height=600,
142
- )
143
- prompt = gr.Textbox(label="Prompt")
144
- run_button = gr.Button("Run")
 
145
  with gr.Accordion("Advanced options", open=False):
146
  style = gr.Dropdown(choices=style_names, value=default_style, label="Style")
147
  negative_prompt = gr.Textbox(label="Negative prompt", value="")
 
130
  gr.Markdown(DESCRIPTION)
131
  with gr.Row():
132
  with gr.Column():
133
+ with gr.Group():
134
+ image = gr.Image(
135
+ source="canvas",
136
+ tool="sketch",
137
+ type="pil",
138
+ image_mode="1",
139
+ invert_colors=True,
140
+ shape=(1024, 1024),
141
+ brush_radius=4,
142
+ height=600,
143
+ )
144
+ prompt = gr.Textbox(label="Prompt")
145
+ run_button = gr.Button("Run")
146
  with gr.Accordion("Advanced options", open=False):
147
  style = gr.Dropdown(choices=style_names, value=default_style, label="Style")
148
  negative_prompt = gr.Textbox(label="Negative prompt", value="")