anodev commited on
Commit
93e825f
·
verified ·
1 Parent(s): 499e176

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -130,7 +130,7 @@ def infer(img,option):
130
  predict("./data/data.png", "./data/data_mask.png")
131
  return "./dataout/data_mask.png","./data/data_mask.png"
132
 
133
- inputs = [gr.Image(tool="sketch", label="Input",type="numpy"),gr.inputs.Radio(choices=["automatic (U2net)","manual"], type="value", default="manual", label="Masking option")]
134
  outputs = [gr.outputs.Image(type="file",label="output"),gr.outputs.Image(type="file",label="Mask")]
135
  title = "LaMa Image Inpainting (using ONNX model from Carve))"
136
  description = "Gradio demo for LaMa: Resolution-robust Large Mask Inpainting with Fourier Convolutions. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below. Masks are generated by U^2net"
 
130
  predict("./data/data.png", "./data/data_mask.png")
131
  return "./dataout/data_mask.png","./data/data_mask.png"
132
 
133
+ inputs = [gr.Image(label="Input",type="numpy"),gr.inputs.Radio(choices=["automatic (U2net)","manual"], type="value", default="manual", label="Masking option")]
134
  outputs = [gr.outputs.Image(type="file",label="output"),gr.outputs.Image(type="file",label="Mask")]
135
  title = "LaMa Image Inpainting (using ONNX model from Carve))"
136
  description = "Gradio demo for LaMa: Resolution-robust Large Mask Inpainting with Fourier Convolutions. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below. Masks are generated by U^2net"