Commit
·
5a5ea72
1
Parent(s):
fe1b646
28. Sept. 2024, 18:48
Browse files
app.py
CHANGED
@@ -311,7 +311,7 @@ with gr.Blocks(theme=theme, css=custom_css, js=custom_js, head=custom_head, titl
|
|
311 |
with gr.Tab("Preprocessors"):
|
312 |
with gr.Row(elem_classes="row-main"):
|
313 |
with gr.Column(scale=1, elem_id="input_column", elem_classes="input-column"):
|
314 |
-
input_image = gr.Image(label="Dein Bild", type="numpy"
|
315 |
|
316 |
## TAB LINEART
|
317 |
with gr.Tab("Lineart") as tab_lineart:
|
@@ -332,9 +332,9 @@ with gr.Blocks(theme=theme, css=custom_css, js=custom_js, head=custom_head, titl
|
|
332 |
with gr.Column():
|
333 |
low_threshold = gr.Slider(label="niedriger Schwellenwert", minimum=1, maximum=255, value=100, step=1)
|
334 |
high_threshold = gr.Slider(label="hoher Schwellenwert", minimum=1, maximum=255, value=200, step=1)
|
335 |
-
|
336 |
-
with gr.Row():
|
337 |
-
resolution = gr.Slider(label="
|
338 |
with gr.Row():
|
339 |
run_btn_lineart = gr.Button("Los", variant="primary", visible=True)
|
340 |
run_btn_canny = gr.Button("Los", variant="primary", visible=False)
|
|
|
311 |
with gr.Tab("Preprocessors"):
|
312 |
with gr.Row(elem_classes="row-main"):
|
313 |
with gr.Column(scale=1, elem_id="input_column", elem_classes="input-column"):
|
314 |
+
input_image = gr.Image(label="Dein Bild", type="numpy")
|
315 |
|
316 |
## TAB LINEART
|
317 |
with gr.Tab("Lineart") as tab_lineart:
|
|
|
332 |
with gr.Column():
|
333 |
low_threshold = gr.Slider(label="niedriger Schwellenwert", minimum=1, maximum=255, value=100, step=1)
|
334 |
high_threshold = gr.Slider(label="hoher Schwellenwert", minimum=1, maximum=255, value=200, step=1)
|
335 |
+
|
336 |
+
with gr.Row():
|
337 |
+
resolution = gr.Slider(label="Auflösung (Pixel Breiet)", minimum=256, maximum=1024, value=512, step=64)
|
338 |
with gr.Row():
|
339 |
run_btn_lineart = gr.Button("Los", variant="primary", visible=True)
|
340 |
run_btn_canny = gr.Button("Los", variant="primary", visible=False)
|