hasibzunair commited on
Commit
989e7a4
β€’
1 Parent(s): 64e05eb
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -176,10 +176,10 @@ thumbnail = None # "./pathtothumbnail.png"
176
 
177
  gr.Interface(
178
  inference,
179
- [gr.inputs.Image(type='filepath', label="Clothing Image"),
180
- gr.inputs.Image(type='filepath', label="Person Image"),
181
- gr.inputs.Radio(choices=["yes","no"], default="no", label="Retrieve original background from the person image?")],
182
- gr.outputs.Image(type="filepath", label="Predicted Output"),
183
  examples=[["./sample_images/1/cloth.jpg", "./sample_images/1/person.jpg"],
184
  ["./sample_images/2/cloth.jpg", "./sample_images/2/person.jpg"]],
185
  title=title,
 
176
 
177
  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"],
184
  ["./sample_images/2/cloth.jpg", "./sample_images/2/person.jpg"]],
185
  title=title,