fffiloni commited on
Commit
b230b71
1 Parent(s): a7d8817

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -60,7 +60,7 @@ def fill_image(image, model_selection):
60
 
61
  margin = 100
62
  # Open the original image
63
- source = image["image"] # Changed from image["background"] to match new input format
64
 
65
  # Calculate new output size
66
  output_size = (source.width + 2*margin, source.height + 2*margin)
@@ -119,12 +119,9 @@ with gr.Blocks(css=css) as demo:
119
  run_button = gr.Button("Generate")
120
 
121
  with gr.Row():
122
- input_image = gr.ImageMask(
123
  type="pil",
124
  label="Input Image",
125
- crop_size=(1024, 1024),
126
- canvas_size=(1024, 1024),
127
- layers=False,
128
  sources=["upload"],
129
  )
130
 
 
60
 
61
  margin = 100
62
  # Open the original image
63
+ source = image # Changed from image["background"] to match new input format
64
 
65
  # Calculate new output size
66
  output_size = (source.width + 2*margin, source.height + 2*margin)
 
119
  run_button = gr.Button("Generate")
120
 
121
  with gr.Row():
122
+ input_image = gr.Image(
123
  type="pil",
124
  label="Input Image",
 
 
 
125
  sources=["upload"],
126
  )
127