Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
167 |
else:
|
168 |
image = Image.open(input_image)
|
169 |
-
|
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 |
|