Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,10 @@ import numpy as np
|
|
4 |
|
5 |
from annotator.util import resize_image, HWC3
|
6 |
|
7 |
-
DESCRIPTION = '#
|
8 |
-
DESCRIPTION += '
|
9 |
-
DESCRIPTION += '\n<p>
|
|
|
10 |
|
11 |
|
12 |
model_canny = None
|
@@ -238,7 +239,13 @@ def inpaint(image, invert):
|
|
238 |
result = np.concatenate([color, alpha], axis=2)
|
239 |
return [result]
|
240 |
|
241 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
242 |
gr.Markdown(DESCRIPTION)
|
243 |
with gr.Tab("Canny Edge"):
|
244 |
with gr.Row():
|
|
|
4 |
|
5 |
from annotator.util import resize_image, HWC3
|
6 |
|
7 |
+
DESCRIPTION = '# '
|
8 |
+
DESCRIPTION += '# ControlNet v1.1 Preprocessors Standalone'
|
9 |
+
DESCRIPTION += '\n<p>Generate Control Images for Stable Diffusion and other apps that uses ControlNet.</p>'
|
10 |
+
|
11 |
|
12 |
|
13 |
model_canny = None
|
|
|
239 |
result = np.concatenate([color, alpha], axis=2)
|
240 |
return [result]
|
241 |
|
242 |
+
theme = gr.themes.Soft(
|
243 |
+
primary_hue="emerald",
|
244 |
+
neutral_hue=gr.themes.Color(c100="#fce7f3", c200="#fbcfe8", c300="#f9a8d4", c400="#f472b6", c50="#fdf2f8", c500="#9b3b6b", c600="#7f2f53", c700="#641b3a", c800="#5d1431", c900="#361120", c950="#2b0d19"),
|
245 |
+
radius_size="sm",
|
246 |
+
)
|
247 |
+
|
248 |
+
with gr.Blocks(theme=theme) as demo:
|
249 |
gr.Markdown(DESCRIPTION)
|
250 |
with gr.Tab("Canny Edge"):
|
251 |
with gr.Row():
|