Update app.py
Browse files
app.py
CHANGED
@@ -44,76 +44,8 @@ Practically the algorithm is used to COLORIZE your **old BLACK & WHITE / GRAYSCA
|
|
44 |
To use it, simply just upload the concerned image.<br>
|
45 |
"""
|
46 |
article = r"""
|
47 |
-
|
48 |
-
|
49 |
-
<p>
|
50 |
-
<img class="round" style="height:275px" src="http://richzhang.github.io/colorization/resources/images/net_diagram.jpg">
|
51 |
-
</p>
|
52 |
-
<div class="footer">
|
53 |
-
<p>Built by <a href="" style="text-decoration: underline;" target="_blank">Dushyantsinh Jadeja</a> & the Model being used in here is from <a href="https://github.com/richzhang/colorization" style="text-decoration: underline;" target="_blank">richzhang</a> - Gradio Demo by 🤗 Hugging Face </p>
|
54 |
-
</div>
|
55 |
-
<div class="acknowledgments">
|
56 |
-
<p>
|
57 |
-
<h4>LICENSE</h4>
|
58 |
-
</p>
|
59 |
-
<h3 class="mt-0 mb-2 h4">BSD 2-Clause "Simplified" License</h3>
|
60 |
-
<h4 class="mt-1 mb-2 h5">Permissions</h4>
|
61 |
-
<ul class="list-style-none">
|
62 |
-
<li class="text-small pl-3">
|
63 |
-
<svg width="13" class="octicon octicon-check color-fg-success ml-n3 v-align-middle" viewBox="0 0 16 16" version="1.1" height="13" aria-hidden="true">
|
64 |
-
<path fill-rule="evenodd" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path>
|
65 |
-
</svg>
|
66 |
-
<span class="v-align-middle" title="The licensed material and derivatives may be used for commercial purposes."> Commercial use </span>
|
67 |
-
</li>
|
68 |
-
<li class="text-small pl-3">
|
69 |
-
<svg width="13" class="octicon octicon-check color-fg-success ml-n3 v-align-middle" viewBox="0 0 16 16" version="1.1" height="13" aria-hidden="true">
|
70 |
-
<path fill-rule="evenodd" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path>
|
71 |
-
</svg>
|
72 |
-
<span class="v-align-middle" title="The licensed material may be modified."> Modification </span>
|
73 |
-
</li>
|
74 |
-
<li class="text-small pl-3">
|
75 |
-
<svg width="13" class="octicon octicon-check color-fg-success ml-n3 v-align-middle" viewBox="0 0 16 16" version="1.1" height="13" aria-hidden="true">
|
76 |
-
<path fill-rule="evenodd" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path>
|
77 |
-
</svg>
|
78 |
-
<span class="v-align-middle" title="The licensed material may be distributed."> Distribution </span>
|
79 |
-
</li>
|
80 |
-
<li class="text-small pl-3">
|
81 |
-
<svg width="13" class="octicon octicon-check color-fg-success ml-n3 v-align-middle" viewBox="0 0 16 16" version="1.1" height="13" aria-hidden="true">
|
82 |
-
<path fill-rule="evenodd" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path>
|
83 |
-
</svg>
|
84 |
-
<span class="v-align-middle" title="The licensed material may be used and modified in private."> Private use </span>
|
85 |
-
</li>
|
86 |
-
</ul>
|
87 |
-
<h4 class="mt-1 mb-2 h5">Limitations</h4>
|
88 |
-
<ul class="list-style-none">
|
89 |
-
<li class="text-small pl-3">
|
90 |
-
<svg width="13" class="octicon octicon-x color-fg-danger ml-n3 v-align-middle" viewBox="0 0 16 16" version="1.1" height="13" aria-hidden="true">
|
91 |
-
<path fill-rule="evenodd" d="M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"></path>
|
92 |
-
</svg>
|
93 |
-
<span class="v-align-middle" title="This license includes a limitation of liability."> Liability </span>
|
94 |
-
</li>
|
95 |
-
<li class="text-small pl-3">
|
96 |
-
<svg width="13" class="octicon octicon-x color-fg-danger ml-n3 v-align-middle" viewBox="0 0 16 16" version="1.1" height="13" aria-hidden="true">
|
97 |
-
<path fill-rule="evenodd" d="M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"></path>
|
98 |
-
</svg>
|
99 |
-
<span class="v-align-middle" title="This license explicitly states that it does NOT provide any warranty."> Warranty </span>
|
100 |
-
</li>
|
101 |
-
</ul>
|
102 |
-
<h4 class="mt-1 mb-2 h5">Conditions</h4>
|
103 |
-
<ul class="list-style-none">
|
104 |
-
<li class="text-small pl-3">
|
105 |
-
<svg width="13" class="octicon octicon-info color-fg-accent ml-n3 v-align-middle" viewBox="0 0 16 16" version="1.1" height="13" aria-hidden="true">
|
106 |
-
<path fill-rule="evenodd" d="M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8zm6.5-.25A.75.75 0 017.25 7h1a.75.75 0 01.75.75v2.75h.25a.75.75 0 010 1.5h-2a.75.75 0 010-1.5h.25v-2h-.25a.75.75 0 01-.75-.75zM8 6a1 1 0 100-2 1 1 0 000 2z"></path>
|
107 |
-
</svg>
|
108 |
-
<span class="v-align-middle" title="A copy of the license and copyright notice must be included with the licensed material."> License and copyright notice </span>
|
109 |
-
</li>
|
110 |
-
</ul>
|
111 |
-
</div> For the full list of restrictions please <a href="https://github.dev/richzhang/colorization/blob/master/LICENSE" target="_blank" style="text-decoration: underline;" target="_blank">read the license</a>
|
112 |
-
</p>
|
113 |
-
<br>
|
114 |
-
<center>
|
115 |
-
<img src='https://visitor-badge.glitch.me/badge?page_id=dj_colorization_eccv16siggraph17' alt='visitor badge'>
|
116 |
-
</center>
|
117 |
"""
|
118 |
|
119 |
#with gr.Interface(css=css) as mainBody:
|
@@ -124,7 +56,7 @@ mainBody = gr.Interface(
|
|
124 |
[
|
125 |
gr.components.Image(type="pil", label="image"),
|
126 |
gr.components.Radio(
|
127 |
-
["
|
128 |
type="value",
|
129 |
label="model"
|
130 |
)
|
|
|
44 |
To use it, simply just upload the concerned image.<br>
|
45 |
"""
|
46 |
article = r"""
|
47 |
+
|
48 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
"""
|
50 |
|
51 |
#with gr.Interface(css=css) as mainBody:
|
|
|
56 |
[
|
57 |
gr.components.Image(type="pil", label="image"),
|
58 |
gr.components.Radio(
|
59 |
+
["siggraph17"],
|
60 |
type="value",
|
61 |
label="model"
|
62 |
)
|