vilarin commited on
Commit
206dcd3
·
verified ·
1 Parent(s): e938f7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -80,10 +80,10 @@ def inpaintGen(
80
  def outpaintGen(
81
  img,
82
  outpaint_prompt: str,
83
- overlay_top: int,
84
- overlay_right: int,
85
- overlay_bottom: int,
86
- overlay_left: int,
87
  op_guidance: float,
88
  op_num_steps: int,
89
  op_seed: int,
@@ -192,10 +192,10 @@ with gr.Blocks(theme="ocean", title="Flux.1 Fill dev", css=CSS) as demo:
192
  image_exp = gr.Image(type="pil", label="Output", height=960)
193
  with gr.Accordion("Advanced ⚙️", open=False):
194
  with gr.Row():
195
- overlay_top = gr.Number(label="Top", value=60, precision=0)
196
- overlay_right = gr.Number(label="Right", value=60, precision=0)
197
- overlay_bottom = gr.Number(label="Bottom", value=60, precision=0)
198
- overlay_left = gr.Number(label="Left", value=60, precision=0)
199
  op_guidance = gr.Slider(label="Guidance scale", minimum=1, maximum=50, value=30.0, step=0.1)
200
  op_num_steps = gr.Slider(label="Steps", minimum=1, maximum=50, value=20, step=1)
201
  op_seed = gr.Number(label="Seed", value=42, precision=0)
@@ -210,10 +210,10 @@ with gr.Blocks(theme="ocean", title="Flux.1 Fill dev", css=CSS) as demo:
210
  inputs = [
211
  img,
212
  outpaint_prompt,
213
- overlay_top,
214
- overlay_right,
215
- overlay_bottom,
216
- overlay_left,
217
  op_guidance,
218
  op_num_steps,
219
  op_seed,
 
80
  def outpaintGen(
81
  img,
82
  outpaint_prompt: str,
83
+ overlap_top: int,
84
+ overlap_right: int,
85
+ overlap_bottom: int,
86
+ overlap_left: int,
87
  op_guidance: float,
88
  op_num_steps: int,
89
  op_seed: int,
 
192
  image_exp = gr.Image(type="pil", label="Output", height=960)
193
  with gr.Accordion("Advanced ⚙️", open=False):
194
  with gr.Row():
195
+ overlap_top = gr.Number(label="Top", value=60, precision=0)
196
+ overlap_right = gr.Number(label="Right", value=60, precision=0)
197
+ overlap_bottom = gr.Number(label="Bottom", value=60, precision=0)
198
+ overlap_left = gr.Number(label="Left", value=60, precision=0)
199
  op_guidance = gr.Slider(label="Guidance scale", minimum=1, maximum=50, value=30.0, step=0.1)
200
  op_num_steps = gr.Slider(label="Steps", minimum=1, maximum=50, value=20, step=1)
201
  op_seed = gr.Number(label="Seed", value=42, precision=0)
 
210
  inputs = [
211
  img,
212
  outpaint_prompt,
213
+ overlap_top,
214
+ overlap_right,
215
+ overlap_bottom,
216
+ overlap_left,
217
  op_guidance,
218
  op_num_steps,
219
  op_seed,