LouisLi commited on
Commit
227441c
·
verified ·
1 Parent(s): 4956c3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -163,10 +163,10 @@ print('Loading Finished!')
163
  def check_input_image(input_image):
164
  if input_image is None:
165
  raise gr.Error("No image uploaded!")
166
- return None
167
  else:
168
  image = Image.open(input_image)
169
- return image
170
 
171
  def preprocess(input_image, do_remove_background):
172
 
 
163
  def check_input_image(input_image):
164
  if input_image is None:
165
  raise gr.Error("No image uploaded!")
166
+ image= None
167
  else:
168
  image = Image.open(input_image)
169
+ return image
170
 
171
  def preprocess(input_image, do_remove_background):
172