Update app.py
Browse files
app.py
CHANGED
@@ -260,7 +260,7 @@ with block:
|
|
260 |
gr.Markdown("## Inpaint \n<p>Mochi Diffusion v4.1で使えるようになりました")
|
261 |
with gr.Row():
|
262 |
with gr.Column():
|
263 |
-
input_image = gr.
|
264 |
# input_image = gr.Image(source='upload', type="numpy", tool="sketch", height=512)
|
265 |
# resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
266 |
invert = gr.Checkbox(label='Invert Mask', value=False)
|
@@ -283,7 +283,8 @@ with block:
|
|
283 |
# run_button = gr.Button(label="Run")
|
284 |
with gr.Column():
|
285 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
286 |
-
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
|
|
287 |
|
288 |
gr.Markdown("<hr>")
|
289 |
with gr.Row():
|
@@ -463,6 +464,7 @@ with block:
|
|
463 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=640, step=64)
|
464 |
run_button = gr.Button("Run")
|
465 |
# run_button = gr.Button(label="Run")
|
|
|
466 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
467 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
468 |
run_button.click(fn=oneformer_ade20k, inputs=[input_image, resolution], outputs=[gallery])
|
|
|
260 |
gr.Markdown("## Inpaint \n<p>Mochi Diffusion v4.1で使えるようになりました")
|
261 |
with gr.Row():
|
262 |
with gr.Column():
|
263 |
+
input_image = gr.ImageMask(sources="upload", type="numpy", height=640)
|
264 |
# input_image = gr.Image(source='upload', type="numpy", tool="sketch", height=512)
|
265 |
# resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
266 |
invert = gr.Checkbox(label='Invert Mask', value=False)
|
|
|
283 |
# run_button = gr.Button(label="Run")
|
284 |
with gr.Column():
|
285 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
286 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
287 |
+
run_button.click(fn=hed, inputs=[input_image, resolution], outputs=[gallery])
|
288 |
|
289 |
gr.Markdown("<hr>")
|
290 |
with gr.Row():
|
|
|
464 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=640, step=64)
|
465 |
run_button = gr.Button("Run")
|
466 |
# run_button = gr.Button(label="Run")
|
467 |
+
with gr.Column():
|
468 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
469 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
470 |
run_button.click(fn=oneformer_ade20k, inputs=[input_image, resolution], outputs=[gallery])
|