Upload app.py
Browse files
app.py
CHANGED
|
@@ -214,7 +214,7 @@ def color_shuffler(img, res):
|
|
| 214 |
model_inpaint = None
|
| 215 |
|
| 216 |
|
| 217 |
-
def inpaint(
|
| 218 |
# image = resize_image(img, res)
|
| 219 |
color = HWC3(image["image"])
|
| 220 |
if(invert):
|
|
@@ -246,7 +246,7 @@ with block:
|
|
| 246 |
with gr.Row():
|
| 247 |
with gr.Column():
|
| 248 |
input_image = gr.Image(source='upload', type="numpy", tool="sketch", height=512)
|
| 249 |
-
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
| 250 |
invert = gr.Checkbox(label='Mask Invert', value=False)
|
| 251 |
run_button = gr.Button(label="Run")
|
| 252 |
with gr.Column():
|
|
|
|
| 214 |
model_inpaint = None
|
| 215 |
|
| 216 |
|
| 217 |
+
def inpaint(image, invert):
|
| 218 |
# image = resize_image(img, res)
|
| 219 |
color = HWC3(image["image"])
|
| 220 |
if(invert):
|
|
|
|
| 246 |
with gr.Row():
|
| 247 |
with gr.Column():
|
| 248 |
input_image = gr.Image(source='upload', type="numpy", tool="sketch", height=512)
|
| 249 |
+
# resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
| 250 |
invert = gr.Checkbox(label='Mask Invert', value=False)
|
| 251 |
run_button = gr.Button(label="Run")
|
| 252 |
with gr.Column():
|