Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -20,6 +20,24 @@ def interface(image, model: str = "eccv16"):
|
|
20 |
)
|
21 |
return output_img
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
title = "Image Colorization Using AI Models"
|
24 |
description = r"""<center>An automatic colorization functionality for Real-Time User-Guided Image Colorization with Learned Deep Priors,ECCV16 & SIGGRAPH 2017 Models!<br>
|
25 |
Practically the algorithm is used to COLORIZE your **old BLACK & WHITE / GRAYSCALE photos**.<br>
|
@@ -126,6 +144,9 @@ Given a grayscale photograph as input, this demo attacks the problem of hallucin
|
|
126 |
<center><img src='https://visitor-badge.glitch.me/badge?page_id=dj_colorization_eccv16siggraph17' alt='visitor badge'></center>
|
127 |
"""
|
128 |
|
|
|
|
|
|
|
129 |
mainBody = gr.Interface(
|
130 |
interface,
|
131 |
[
|
@@ -139,6 +160,7 @@ mainBody = gr.Interface(
|
|
139 |
[
|
140 |
gr.components.Image(label="output")
|
141 |
],
|
|
|
142 |
#inputs="sketchpad",
|
143 |
#outputs="label",
|
144 |
theme="huggingface",
|
|
|
20 |
)
|
21 |
return output_img
|
22 |
|
23 |
+
css='''
|
24 |
+
.Box {
|
25 |
+
background-color: var(--color-canvas-default);
|
26 |
+
border-color: var(--color-border-default);
|
27 |
+
border-style: solid;
|
28 |
+
border-width: 1px;
|
29 |
+
border-radius: 6px;
|
30 |
+
}
|
31 |
+
.d-flex {
|
32 |
+
display: flex !important;
|
33 |
+
}
|
34 |
+
.flex-md-row {
|
35 |
+
flex-direction: row !important;
|
36 |
+
}
|
37 |
+
.flex-column {
|
38 |
+
flex-direction: column !important;
|
39 |
+
}
|
40 |
+
'''
|
41 |
title = "Image Colorization Using AI Models"
|
42 |
description = r"""<center>An automatic colorization functionality for Real-Time User-Guided Image Colorization with Learned Deep Priors,ECCV16 & SIGGRAPH 2017 Models!<br>
|
43 |
Practically the algorithm is used to COLORIZE your **old BLACK & WHITE / GRAYSCALE photos**.<br>
|
|
|
144 |
<center><img src='https://visitor-badge.glitch.me/badge?page_id=dj_colorization_eccv16siggraph17' alt='visitor badge'></center>
|
145 |
"""
|
146 |
|
147 |
+
mainBody = gr.Blocks(css=css)
|
148 |
+
#with gr.Blocks(css=".gradio-container {background-color: red}") as demo:
|
149 |
+
|
150 |
mainBody = gr.Interface(
|
151 |
interface,
|
152 |
[
|
|
|
160 |
[
|
161 |
gr.components.Image(label="output")
|
162 |
],
|
163 |
+
css=css,
|
164 |
#inputs="sketchpad",
|
165 |
#outputs="label",
|
166 |
theme="huggingface",
|