Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -246,13 +246,23 @@ class CustomTheme(gr.themes.Base):
|
|
246 |
|
247 |
# Custom CSS
|
248 |
css = """
|
249 |
-
/* Set background color for the entire page */
|
250 |
body {
|
251 |
background-color: #191a1e !important;
|
252 |
margin: 0;
|
253 |
padding: 0;
|
254 |
}
|
255 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
256 |
/* Hide the footer */
|
257 |
footer {
|
258 |
visibility: hidden;
|
@@ -282,12 +292,6 @@ h1, h2, h3, h4, h5, h6 {
|
|
282 |
border: none;
|
283 |
font-weight: bold;
|
284 |
}
|
285 |
-
|
286 |
-
/* Container styles */
|
287 |
-
.gr-block {
|
288 |
-
background-color: #1c1c24 !important;
|
289 |
-
border: 1px solid #5271FF !important;
|
290 |
-
}
|
291 |
"""
|
292 |
|
293 |
# Build the Gradio interface
|
@@ -346,7 +350,6 @@ with gr.Blocks(theme=CustomTheme(), css=css) as demo:
|
|
346 |
gr.Markdown(
|
347 |
"""
|
348 |
## HDR Environment Map
|
349 |
-
|
350 |
Select an HDR environment map to light the 3D model. You can also upload your own HDR environment maps.
|
351 |
"""
|
352 |
)
|
|
|
246 |
|
247 |
# Custom CSS
|
248 |
css = """
|
|
|
249 |
body {
|
250 |
background-color: #191a1e !important;
|
251 |
margin: 0;
|
252 |
padding: 0;
|
253 |
}
|
254 |
|
255 |
+
/* Применяем фоновый цвет для контейнера Gradio */
|
256 |
+
.gradio-container {
|
257 |
+
background-color: #191a1e !important;
|
258 |
+
}
|
259 |
+
|
260 |
+
/* Применяем фоновый цвет для блоков */
|
261 |
+
.gr-block {
|
262 |
+
background-color: #191a1e !important;
|
263 |
+
border: 1px solid #5271FF !important;
|
264 |
+
}
|
265 |
+
|
266 |
/* Hide the footer */
|
267 |
footer {
|
268 |
visibility: hidden;
|
|
|
292 |
border: none;
|
293 |
font-weight: bold;
|
294 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
295 |
"""
|
296 |
|
297 |
# Build the Gradio interface
|
|
|
350 |
gr.Markdown(
|
351 |
"""
|
352 |
## HDR Environment Map
|
|
|
353 |
Select an HDR environment map to light the 3D model. You can also upload your own HDR environment maps.
|
354 |
"""
|
355 |
)
|