ysharma HF staff commited on
Commit
0ff7f24
1 Parent(s): 51c8ab2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -99,6 +99,8 @@ def process(
99
  if not input_image:
100
  gr.Info("Please upload an image.")
101
  return None
 
 
102
 
103
  if not mask:
104
  gr.Info("Please draw a mask on the image.")
 
99
  if not input_image:
100
  gr.Info("Please upload an image.")
101
  return None
102
+ else:
103
+ input_image = Image.open(input_image)
104
 
105
  if not mask:
106
  gr.Info("Please draw a mask on the image.")