Spaces:
Running
Running
test
Browse files
app.py
CHANGED
|
@@ -75,9 +75,18 @@ def ui():
|
|
| 75 |
sources=['upload'],
|
| 76 |
type='pil',
|
| 77 |
height=512,
|
|
|
|
|
|
|
| 78 |
show_download_button=True,
|
| 79 |
show_share_button=True,
|
| 80 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
with gr.Row():
|
| 82 |
scheduler = gr.Dropdown(
|
| 83 |
label='Scheduler',
|
|
@@ -93,13 +102,6 @@ def ui():
|
|
| 93 |
controlnet_scale = gr.Slider(minimum=0, maximum=1, step=0.01, value=0.35, label='ControlNet Scale')
|
| 94 |
with gr.Row():
|
| 95 |
seed = gr.Number(label='Seed', step=1, precision=0, value=-1)
|
| 96 |
-
with gr.Row():
|
| 97 |
-
processor = gr.Dropdown(
|
| 98 |
-
label='Image Preprocessor',
|
| 99 |
-
choices=preprocessors,
|
| 100 |
-
value='canny',
|
| 101 |
-
)
|
| 102 |
-
process_button = gr.Button("Process", variant='primary', min_width=96, scale=0)
|
| 103 |
with gr.Column(scale=1):
|
| 104 |
output = gr.Gallery(
|
| 105 |
label='Output',
|
|
|
|
| 75 |
sources=['upload'],
|
| 76 |
type='pil',
|
| 77 |
height=512,
|
| 78 |
+
image_mode='RGB',
|
| 79 |
+
format='png',
|
| 80 |
show_download_button=True,
|
| 81 |
show_share_button=True,
|
| 82 |
)
|
| 83 |
+
with gr.Row():
|
| 84 |
+
processor = gr.Dropdown(
|
| 85 |
+
label='Image Preprocessor',
|
| 86 |
+
choices=preprocessors,
|
| 87 |
+
value='canny',
|
| 88 |
+
)
|
| 89 |
+
process_button = gr.Button("Process", variant='primary', min_width=96, scale=0)
|
| 90 |
with gr.Row():
|
| 91 |
scheduler = gr.Dropdown(
|
| 92 |
label='Scheduler',
|
|
|
|
| 102 |
controlnet_scale = gr.Slider(minimum=0, maximum=1, step=0.01, value=0.35, label='ControlNet Scale')
|
| 103 |
with gr.Row():
|
| 104 |
seed = gr.Number(label='Seed', step=1, precision=0, value=-1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
with gr.Column(scale=1):
|
| 106 |
output = gr.Gallery(
|
| 107 |
label='Output',
|