Akjava commited on
Commit
7c945b6
1 Parent(s): bae8381

support mask

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -13,7 +13,8 @@ def sanitize_prompt(prompt):
13
  return sanitized_prompt
14
 
15
  #@spaces.GPU(duration=120)
16
- def process_images(image, image2=None,inpaint_radius=3,blur_radius=25,edge_expand=8,inpaint_mode="Telea"):
 
17
  # I'm not sure when this happen
18
  if not isinstance(image, dict):
19
  if image2 == None:
 
13
  return sanitized_prompt
14
 
15
  #@spaces.GPU(duration=120)
16
+ def process_images(image, image2=None,inpaint_radius=3,blur_radius=25,edge_expand=8,inpaint_mode="Telea",progress=gr.Progress(track_tqdm=True)):
17
+ progress(0, desc="Start Inpainting")
18
  # I'm not sure when this happen
19
  if not isinstance(image, dict):
20
  if image2 == None: