Update app.py
Browse files
app.py
CHANGED
|
@@ -124,24 +124,11 @@ css = """
|
|
| 124 |
#advanced-options {
|
| 125 |
margin-bottom: 20px;
|
| 126 |
}
|
| 127 |
-
.
|
| 128 |
-
|
| 129 |
-
margin-top: 35px;
|
| 130 |
-
text-align: center;
|
| 131 |
-
border-bottom: 1px solid #e5e5e5;
|
| 132 |
-
}
|
| 133 |
-
.footer>p {
|
| 134 |
-
font-size: .8rem;
|
| 135 |
-
display: inline-block;
|
| 136 |
-
padding: 0 10px;
|
| 137 |
-
transform: translateY(10px);
|
| 138 |
-
background: white;
|
| 139 |
-
}
|
| 140 |
-
.dark .logo{ filter: invert(1); }
|
| 141 |
-
.dark .footer {
|
| 142 |
border-color: #303030;
|
| 143 |
}
|
| 144 |
-
.dark
|
| 145 |
background: #0b0f19;
|
| 146 |
}
|
| 147 |
.acknowledgments h4{
|
|
@@ -175,13 +162,6 @@ with block:
|
|
| 175 |
gr.HTML(
|
| 176 |
"""
|
| 177 |
<div style="text-align: center; max-width: 650px; margin: 0 auto;">
|
| 178 |
-
<div>
|
| 179 |
-
<img class="logo" src="https://lambdalabs.com/static/images/lambda-logo.svg" alt="Lambda Logo"
|
| 180 |
-
style="margin: auto; max-width: 7rem;">
|
| 181 |
-
<h1 style="font-weight: 900; font-size: 3rem;">
|
| 182 |
-
Icon Generator
|
| 183 |
-
</h1>
|
| 184 |
-
</div>
|
| 185 |
</div>
|
| 186 |
"""
|
| 187 |
)
|
|
@@ -222,13 +202,5 @@ with block:
|
|
| 222 |
|
| 223 |
text.submit(infer, inputs=[text, samples, steps, scale], outputs=gallery)
|
| 224 |
btn.click(infer, inputs=[text, samples, steps, scale], outputs=gallery)
|
| 225 |
-
gr.HTML(
|
| 226 |
-
"""
|
| 227 |
-
<div class="footer">
|
| 228 |
-
<p> Gradio Demo by 🤗 Hugging Face
|
| 229 |
-
</p>
|
| 230 |
-
</div>
|
| 231 |
-
"""
|
| 232 |
-
)
|
| 233 |
|
| 234 |
block.launch(debug=True)
|
|
|
|
| 124 |
#advanced-options {
|
| 125 |
margin-bottom: 20px;
|
| 126 |
}
|
| 127 |
+
.dark { filter: invert(1); }
|
| 128 |
+
.dark {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
border-color: #303030;
|
| 130 |
}
|
| 131 |
+
.dark {
|
| 132 |
background: #0b0f19;
|
| 133 |
}
|
| 134 |
.acknowledgments h4{
|
|
|
|
| 162 |
gr.HTML(
|
| 163 |
"""
|
| 164 |
<div style="text-align: center; max-width: 650px; margin: 0 auto;">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 165 |
</div>
|
| 166 |
"""
|
| 167 |
)
|
|
|
|
| 202 |
|
| 203 |
text.submit(infer, inputs=[text, samples, steps, scale], outputs=gallery)
|
| 204 |
btn.click(infer, inputs=[text, samples, steps, scale], outputs=gallery)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 205 |
|
| 206 |
block.launch(debug=True)
|