Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,10 @@ import numpy as np
|
|
| 4 |
|
| 5 |
from annotator.util import resize_image, HWC3
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
DESCRIPTION = '# ControlNet v1.1 Annotators (that runs on cpu only)'
|
| 8 |
DESCRIPTION += '\n<p>This app generates Control Image for Mochi Diffusion's ControlNet.</p>'
|
| 9 |
DESCRIPTION += '\n<p>HEIC image is not converted. Please use PNG or JPG image.</p>'
|
|
@@ -253,6 +257,8 @@ block = gr.Blocks().queue()
|
|
| 253 |
|
| 254 |
with block:
|
| 255 |
gr.Markdown(DESCRIPTION)
|
|
|
|
|
|
|
| 256 |
with gr.Row():
|
| 257 |
gr.Markdown("## Canny Edge")
|
| 258 |
with gr.Row():
|
|
|
|
| 4 |
|
| 5 |
from annotator.util import resize_image, HWC3
|
| 6 |
|
| 7 |
+
from theme_dropdown import create_theme_dropdown # noqa: F401
|
| 8 |
+
|
| 9 |
+
dropdown, js = create_theme_dropdown()
|
| 10 |
+
|
| 11 |
DESCRIPTION = '# ControlNet v1.1 Annotators (that runs on cpu only)'
|
| 12 |
DESCRIPTION += '\n<p>This app generates Control Image for Mochi Diffusion's ControlNet.</p>'
|
| 13 |
DESCRIPTION += '\n<p>HEIC image is not converted. Please use PNG or JPG image.</p>'
|
|
|
|
| 257 |
|
| 258 |
with block:
|
| 259 |
gr.Markdown(DESCRIPTION)
|
| 260 |
+
|
| 261 |
+
|
| 262 |
with gr.Row():
|
| 263 |
gr.Markdown("## Canny Edge")
|
| 264 |
with gr.Row():
|