fix: name of method and formatting

This commit is contained in:
Artemy 2023-04-16 18:40:08 +03:00
parent 1b259c886f
commit fbc9112fba
9 changed files with 61 additions and 45 deletions

View file

@ -3,17 +3,22 @@ from processing.bulk import bulk_processing
with gr.Blocks() as app:
gr.Markdown(
"Mass processing of images one at a time and saving to video if needed. # **WIP, not working**")
"Mass processing of images one at a time and saving to video if needed. # **WIP, not working**"
)
with gr.Row():
with gr.Column():
directory = gr.Text(
placeholder="A directory with many images.", lines=1, label="Directory")
placeholder="A directory with many images.", lines=1, label="Directory"
)
method = gr.Dropdown(
choices=["canny edge", "sharpen"], value="canny edge", label="Method")
choices=["canny edge", "sharpen"], value="canny edge", label="Method"
)
with gr.Accordion("Advanced settings", open=False) as acc:
out_dir = gr.Text(
label="Output directory", placeholder="The directory where the processed photos will be saved. If not specified `./output/images`")
label="Output directory",
placeholder="The directory where the processed photos will be saved. If not specified `./output/images`",
)
submit = gr.Button("Submit")
submit.click(
fn=bulk_processing,