linoyts HF staff commited on
Commit
3f860d6
β€’
1 Parent(s): 316e8d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -191,12 +191,12 @@ with gr.Blocks(css=css) as demo:
191
  slider_y = gr.Dropdown(label="Slider X concept range", allow_custom_value=True, multiselect=True, max_choices=2)
192
  prompt = gr.Textbox(label="Prompt")
193
  submit = gr.Button("find directions")
194
- with gr.Group(elem_id="group"):
195
- x = gr.Slider(minimum=-7, value=0, maximum=7, elem_id="x", interactive=False)
196
- y = gr.Slider(minimum=-7, value=0, maximum=7, elem_id="y", interactive=False)
197
- output_image = gr.Image(elem_id="image_out")
198
- with gr.Row():
199
- generate_butt = gr.Button("generate")
200
 
201
  with gr.Accordion(label="advanced options", open=False):
202
  iterations = gr.Slider(label = "num iterations", minimum=0, value=200, maximum=400)
@@ -220,12 +220,12 @@ with gr.Blocks(css=css) as demo:
220
  img2img_type = gr.Radio(["controlnet canny", "ip adapter"], label="", info="")
221
  prompt_a = gr.Textbox(label="Prompt")
222
  submit_a = gr.Button("Submit")
223
- with gr.Group(elem_id="group"):
224
- x_a = gr.Slider(minimum=-10, value=0, maximum=10, elem_id="x", interactive=False)
225
- y_a = gr.Slider(minimum=-10, value=0, maximum=10, elem_id="y", interactive=False)
226
- output_image_a = gr.Image(elem_id="image_out")
227
- with gr.Row():
228
- generate_butt_a = gr.Button("generate")
229
 
230
  with gr.Accordion(label="advanced options", open=False):
231
  iterations_a = gr.Slider(label = "num iterations", minimum=0, value=200, maximum=300)
 
191
  slider_y = gr.Dropdown(label="Slider X concept range", allow_custom_value=True, multiselect=True, max_choices=2)
192
  prompt = gr.Textbox(label="Prompt")
193
  submit = gr.Button("find directions")
194
+ with gr.Column():
195
+ with gr.Group(elem_id="group"):
196
+ x = gr.Slider(minimum=-7, value=0, maximum=7, elem_id="x", interactive=False)
197
+ y = gr.Slider(minimum=-7, value=0, maximum=7, elem_id="y", interactive=False)
198
+ output_image = gr.Image(elem_id="image_out")
199
+ generate_butt = gr.Button("generate")
200
 
201
  with gr.Accordion(label="advanced options", open=False):
202
  iterations = gr.Slider(label = "num iterations", minimum=0, value=200, maximum=400)
 
220
  img2img_type = gr.Radio(["controlnet canny", "ip adapter"], label="", info="")
221
  prompt_a = gr.Textbox(label="Prompt")
222
  submit_a = gr.Button("Submit")
223
+ with gr.Column():
224
+ with gr.Group(elem_id="group"):
225
+ x_a = gr.Slider(minimum=-10, value=0, maximum=10, elem_id="x", interactive=False)
226
+ y_a = gr.Slider(minimum=-10, value=0, maximum=10, elem_id="y", interactive=False)
227
+ output_image_a = gr.Image(elem_id="image_out")
228
+ generate_butt_a = gr.Button("generate")
229
 
230
  with gr.Accordion(label="advanced options", open=False):
231
  iterations_a = gr.Slider(label = "num iterations", minimum=0, value=200, maximum=300)