Akjava commited on
Commit
4a4842f
·
1 Parent(s): 4b48765
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -78,8 +78,8 @@ with demo_blocks as demo:
78
  with gr.Row():
79
  with gr.Column():
80
  image = gr.ImageEditor(height=800,sources=['upload','clipboard'],transforms=[],image_mode='RGB', layers=False, elem_id="Foreground", type="pil", label="Foreground",brush=gr.Brush(colors=["#fff"], color_mode="fixed"))
 
81
 
82
-
83
  btn = gr.Button("Paste to BG", elem_id="run_button",variant="primary")
84
 
85
  bg_image = gr.Image(sources=['upload','clipboard'], elem_id="bg_image", type="pil", label="Background Image",height=400, value=None)
@@ -111,8 +111,8 @@ with demo_blocks as demo:
111
  btn.click(fn=process_images, inputs=[image, bg_image,image_mask,dilate,blur], outputs =[image_out,mask_out], api_name='infer')
112
  gr.Examples(
113
  examples=[
114
- ["images/00533245_00003200_mouth.jpg", "images/00533245_00004200_eyes.jpg","images/00533245_99_mask.jpg",5,18,"images/00533245_mixed.jpg"],
115
- ["images/00346245_00006200.jpg", "images/00346245_00003200.jpg","images/00346245_mask.jpg",10,0,"images/00346245_mixed.jpg"]
116
 
117
  ]
118
  ,
 
78
  with gr.Row():
79
  with gr.Column():
80
  image = gr.ImageEditor(height=800,sources=['upload','clipboard'],transforms=[],image_mode='RGB', layers=False, elem_id="Foreground", type="pil", label="Foreground",brush=gr.Brush(colors=["#fff"], color_mode="fixed"))
81
+ #image.height=1000
82
 
 
83
  btn = gr.Button("Paste to BG", elem_id="run_button",variant="primary")
84
 
85
  bg_image = gr.Image(sources=['upload','clipboard'], elem_id="bg_image", type="pil", label="Background Image",height=400, value=None)
 
111
  btn.click(fn=process_images, inputs=[image, bg_image,image_mask,dilate,blur], outputs =[image_out,mask_out], api_name='infer')
112
  gr.Examples(
113
  examples=[
114
+ ["examples/00533245_00003200_mouth.jpg", "examples/00533245_00004200_eyes.jpg","examples/00533245_99_mask.jpg",5,18,"examples/00533245_mixed.jpg"],
115
+ ["examples/00346245_00006200.jpg", "examples/00346245_00003200.jpg","examples/00346245_mask.jpg",10,0,"examples/00346245_mixed.jpg"]
116
 
117
  ]
118
  ,