profaker commited on
Commit
6f7ff2e
·
verified ·
1 Parent(s): 685d2fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -61,7 +61,7 @@ def predict(dict, prompt="", negative_prompt="", guidance_scale=7.5, steps=30, s
61
 
62
  mask_image.putdata(new_data)
63
  mask_image = mask_image.resize(init_image.size, resample=Image.LANCZOS)
64
- mask_image = pipe.mask_processor.blur(mask_image, blur_factor=5)
65
  output = pipe(
66
  prompt = prompt,
67
  negative_prompt=negative_prompt,
@@ -143,7 +143,7 @@ with image_blocks as demo:
143
  scheduler = gr.Dropdown(label="Schedulers", choices=schedulers, value="DPMSolverMultistepScheduler-Karras")
144
 
145
  with gr.Column():
146
- image_out = gr.Image(label="Output", elem_id="output-img", height=1024, width=512)
147
  with gr.Group(elem_id="share-btn-container", visible=False) as share_btn_container:
148
  community_icon = gr.HTML(community_icon_html)
149
  loading_icon = gr.HTML(loading_icon_html)
 
61
 
62
  mask_image.putdata(new_data)
63
  mask_image = mask_image.resize(init_image.size, resample=Image.LANCZOS)
64
+ #mask_image = pipe.mask_processor.blur(mask_image, blur_factor=5)
65
  output = pipe(
66
  prompt = prompt,
67
  negative_prompt=negative_prompt,
 
143
  scheduler = gr.Dropdown(label="Schedulers", choices=schedulers, value="DPMSolverMultistepScheduler-Karras")
144
 
145
  with gr.Column():
146
+ image_out = gr.Image(label="Output", elem_id="output-img", height=512, width=512)
147
  with gr.Group(elem_id="share-btn-container", visible=False) as share_btn_container:
148
  community_icon = gr.HTML(community_icon_html)
149
  loading_icon = gr.HTML(loading_icon_html)