Spaces:
Runtime error
Runtime error
Commit
β’
4e91e48
1
Parent(s):
0af5e1f
update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,6 @@ else:
|
|
21 |
print(f"####Using {device}.#####")
|
22 |
|
23 |
|
24 |
-
|
25 |
# Make directories
|
26 |
os.system("mkdir ./Data_preprocessing")
|
27 |
os.system("mkdir ./Data_preprocessing/test_color")
|
@@ -178,7 +177,7 @@ gr.Interface(
|
|
178 |
inference,
|
179 |
[gr.inputs.Image(type='file', label="Clothing Image"),
|
180 |
gr.inputs.Image(type='file', label="Person Image"),
|
181 |
-
gr.inputs.Radio(choices=["yes","no"], label="Retrieve original background from the person image?"
|
182 |
gr.outputs.Image(type="file", label="Predicted Output"),
|
183 |
examples=[["./sample_images/1/cloth.jpg", "./sample_images/1/person.jpg", "yes"],
|
184 |
["./sample_images/2/cloth.jpg", "./sample_images/2/person.jpg", "no"]],
|
|
|
21 |
print(f"####Using {device}.#####")
|
22 |
|
23 |
|
|
|
24 |
# Make directories
|
25 |
os.system("mkdir ./Data_preprocessing")
|
26 |
os.system("mkdir ./Data_preprocessing/test_color")
|
|
|
177 |
inference,
|
178 |
[gr.inputs.Image(type='file', label="Clothing Image"),
|
179 |
gr.inputs.Image(type='file', label="Person Image"),
|
180 |
+
gr.inputs.Radio(choices=["yes","no"], default="no", label="Retrieve original background from the person image?")],
|
181 |
gr.outputs.Image(type="file", label="Predicted Output"),
|
182 |
examples=[["./sample_images/1/cloth.jpg", "./sample_images/1/person.jpg", "yes"],
|
183 |
["./sample_images/2/cloth.jpg", "./sample_images/2/person.jpg", "no"]],
|