r3gm commited on
Commit
b09ecb9
·
verified ·
1 Parent(s): d3803f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -282,13 +282,13 @@ with gr.Blocks(css=CSS) as demo:
282
 
283
  with gr.Column():
284
  with gr.Row():
285
- btn_top = gr.Button("⬆️ Add Top Padding", elem_id="btn_top", variant="huggingface")
286
  with gr.Row():
287
- btn_left = gr.Button("⬅️ Add Left Padding", elem_id="btn_left", scale=1, variant="huggingface")
288
  img_output = gr.Image(label="Preview", height=400, width=400, scale=10, elem_id="img_output", show_download_button=False)
289
- btn_right = gr.Button("➡️ Add Right Padding", elem_id="btn_right", scale=1, variant="huggingface")
290
  with gr.Row():
291
- btn_bottom = gr.Button("⬇️ Add Bottom Padding", elem_id="btn_botton", variant="huggingface")
292
 
293
  padding_pixels = gr.Slider(1, 1000, value=100, step=1, label="Padding Amount (pixels)", info="How many pixels of padding to add each time you tap the `Padding Buttons`")
294
  color_ = gr.ColorPicker(label="Color Used to Fill Padding", info="Choose the color used to fill the extended padding area. If not defined, the most common color in the image will be used.")
 
282
 
283
  with gr.Column():
284
  with gr.Row():
285
+ btn_top = gr.Button("⬆️ Top Padding", elem_id="btn_top", variant="huggingface")
286
  with gr.Row():
287
+ btn_left = gr.Button("⬅️ Left Padding", elem_id="btn_left", scale=1, variant="huggingface")
288
  img_output = gr.Image(label="Preview", height=400, width=400, scale=10, elem_id="img_output", show_download_button=False)
289
+ btn_right = gr.Button("➡️ Right Padding", elem_id="btn_right", scale=1, variant="huggingface")
290
  with gr.Row():
291
+ btn_bottom = gr.Button("⬇️ Bottom Padding", elem_id="btn_botton", variant="huggingface")
292
 
293
  padding_pixels = gr.Slider(1, 1000, value=100, step=1, label="Padding Amount (pixels)", info="How many pixels of padding to add each time you tap the `Padding Buttons`")
294
  color_ = gr.ColorPicker(label="Color Used to Fill Padding", info="Choose the color used to fill the extended padding area. If not defined, the most common color in the image will be used.")