Spaces:
Running
on
A10G
Running
on
A10G
Update app.py
Browse files
app.py
CHANGED
@@ -147,7 +147,8 @@ def infer(use_custom_model, model_name, weight_name, custom_lora_weight, image_i
|
|
147 |
image = image[:, :, None]
|
148 |
image = np.concatenate([image, image, image], axis=2)
|
149 |
image = Image.fromarray(image)
|
150 |
-
|
|
|
151 |
image = load_image(image_in)
|
152 |
image = Image.fromarray(image)
|
153 |
|
@@ -322,7 +323,7 @@ with gr.Blocks(css=css) as demo:
|
|
322 |
|
323 |
with gr.Column():
|
324 |
with gr.Group():
|
325 |
-
preprocessor = gr.Dropdown(label="Preprocessor", choices=["canny"], value="canny", interactive=
|
326 |
controlnet_conditioning_scale = gr.Slider(label="Controlnet conditioning Scale", minimum=0.1, maximum=1.0, step=0.01, value=0.5)
|
327 |
with gr.Group():
|
328 |
seed = gr.Slider(
|
|
|
147 |
image = image[:, :, None]
|
148 |
image = np.concatenate([image, image, image], axis=2)
|
149 |
image = Image.fromarray(image)
|
150 |
+
|
151 |
+
if preprocessor == "lineart":
|
152 |
image = load_image(image_in)
|
153 |
image = Image.fromarray(image)
|
154 |
|
|
|
323 |
|
324 |
with gr.Column():
|
325 |
with gr.Group():
|
326 |
+
preprocessor = gr.Dropdown(label="Preprocessor", choices=["canny", "lineart"], value="canny", interactive=True, info="For the moment, only canny is available")
|
327 |
controlnet_conditioning_scale = gr.Slider(label="Controlnet conditioning Scale", minimum=0.1, maximum=1.0, step=0.01, value=0.5)
|
328 |
with gr.Group():
|
329 |
seed = gr.Slider(
|