Spaces:
Runtime error
Runtime error
remove default
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def infer(img,option):
|
|
32 |
os.system('python predict.py model.path=/home/user/app/ indir=/home/user/app/data/ outdir=/home/user/app/dataout/ device=cpu')
|
33 |
return "./dataout/data_mask.png","./data/data_mask.png"
|
34 |
|
35 |
-
inputs = [gr.Image(tool="sketch", label="Input",type="numpy"
|
36 |
outputs = [gr.outputs.Image(type="file",label="output"),gr.outputs.Image(type="file",label="Mask")]
|
37 |
title = "LaMa Image Inpainting"
|
38 |
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"
|
|
|
32 |
os.system('python predict.py model.path=/home/user/app/ indir=/home/user/app/data/ outdir=/home/user/app/dataout/ device=cpu')
|
33 |
return "./dataout/data_mask.png","./data/data_mask.png"
|
34 |
|
35 |
+
inputs = [gr.Image(tool="sketch", label="Input",type="numpy"),gr.inputs.Radio(choices=["automatic (U2net)","manual"], type="value", default="manual", label="Masking option")]
|
36 |
outputs = [gr.outputs.Image(type="file",label="output"),gr.outputs.Image(type="file",label="Mask")]
|
37 |
title = "LaMa Image Inpainting"
|
38 |
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"
|