Spaces:
Sleeping
Sleeping
evegarcianz
commited on
Commit
•
4b2750d
1
Parent(s):
34a83e6
update background
Browse files
app.py
CHANGED
@@ -240,39 +240,26 @@ def greet(question,candidate):
|
|
240 |
|
241 |
|
242 |
|
243 |
-
css= """
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
cursor: pointer;
|
257 |
-
font-size: 16px;
|
258 |
-
display: block;
|
259 |
-
margin: auto;
|
260 |
-
}
|
261 |
-
.center {{
|
262 |
-
text-align: center;
|
263 |
-
display: flex;
|
264 |
-
flex-direction: column;
|
265 |
-
justify-content: center;
|
266 |
-
align-items: center;
|
267 |
-
height: 100vh;
|
268 |
-
}}
|
269 |
"""
|
270 |
|
271 |
|
272 |
#{background: linear-gradient(to right, #228B22, #FFFFFF, #FF0000);}
|
273 |
|
274 |
|
275 |
-
with gr.Blocks(css=
|
276 |
with gr.Row():
|
277 |
#gr.Markdown(value="![](https://upload.wikimedia.org/wikipedia/commons/9/94/AXA_Logo.svg)", elem_id='imagen')
|
278 |
gr.Markdown(
|
|
|
240 |
|
241 |
|
242 |
|
243 |
+
css= """.gradio-container {
|
244 |
+
background: linear-gradient(-45deg,
|
245 |
+
green 33%,
|
246 |
+
white 33%, white 66%,
|
247 |
+
red 66%);
|
248 |
+
background-size: 100% 4rem;
|
249 |
+
animation: animate 10s linear infinite;
|
250 |
+
}
|
251 |
+
|
252 |
+
@keyframes animate {
|
253 |
+
0% {background-position: 0 0}
|
254 |
+
100% {background-position: 100% 0}
|
255 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
256 |
"""
|
257 |
|
258 |
|
259 |
#{background: linear-gradient(to right, #228B22, #FFFFFF, #FF0000);}
|
260 |
|
261 |
|
262 |
+
with gr.Blocks(css=css) as demo:
|
263 |
with gr.Row():
|
264 |
#gr.Markdown(value="![](https://upload.wikimedia.org/wikipedia/commons/9/94/AXA_Logo.svg)", elem_id='imagen')
|
265 |
gr.Markdown(
|