Update app.py
Browse files
app.py
CHANGED
|
@@ -49,10 +49,10 @@ def get_openpos_image(image):
|
|
| 49 |
return processor(image, hand_and_face=True)
|
| 50 |
|
| 51 |
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
|
| 57 |
|
| 58 |
def is_lora(model_name):
|
|
@@ -298,7 +298,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 298 |
value=100, # Replace with defaults that work for your model
|
| 299 |
)
|
| 300 |
|
| 301 |
-
|
| 302 |
|
| 303 |
# gr.on(
|
| 304 |
# triggers=[run_button.click, prompt.submit],
|
|
|
|
| 49 |
return processor(image, hand_and_face=True)
|
| 50 |
|
| 51 |
|
| 52 |
+
control_net_modes = {
|
| 53 |
+
"lllyasviel/sd-controlnet-canny": get_canny_image,
|
| 54 |
+
"lllyasviel/control_v11p_sd15_openpose": get_openpos_image,
|
| 55 |
+
}
|
| 56 |
|
| 57 |
|
| 58 |
def is_lora(model_name):
|
|
|
|
| 298 |
value=100, # Replace with defaults that work for your model
|
| 299 |
)
|
| 300 |
|
| 301 |
+
# gr.Examples(examples=examples, inputs=[prompt])
|
| 302 |
|
| 303 |
# gr.on(
|
| 304 |
# triggers=[run_button.click, prompt.submit],
|