Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -1133,6 +1133,11 @@ custom_css = """
|
|
| 1133 |
color: #ffffff !important;
|
| 1134 |
}
|
| 1135 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1136 |
/* ===== GLOBAL STYLES ===== */
|
| 1137 |
body {
|
| 1138 |
background: linear-gradient(180deg, #0a0a1a 0%, #0f0f23 100%) !important;
|
|
@@ -1140,6 +1145,10 @@ body {
|
|
| 1140 |
font-family: system-ui, -apple-system, sans-serif;
|
| 1141 |
}
|
| 1142 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1143 |
.gradio-container {
|
| 1144 |
max-width: 100% !important;
|
| 1145 |
width: 100% !important;
|
|
@@ -2063,7 +2072,7 @@ button.custom-action-btn:hover,
|
|
| 2063 |
}
|
| 2064 |
"""
|
| 2065 |
|
| 2066 |
-
with gr.Blocks(
|
| 2067 |
# Inject custom CSS and decorative elements (positioned fixed, no DOM space)
|
| 2068 |
gr.HTML(f"""
|
| 2069 |
<style>{custom_css}</style>
|
|
|
|
| 1133 |
color: #ffffff !important;
|
| 1134 |
}
|
| 1135 |
|
| 1136 |
+
/* ===== FORCE DARK MODE ===== */
|
| 1137 |
+
:root {
|
| 1138 |
+
color-scheme: dark !important;
|
| 1139 |
+
}
|
| 1140 |
+
|
| 1141 |
/* ===== GLOBAL STYLES ===== */
|
| 1142 |
body {
|
| 1143 |
background: linear-gradient(180deg, #0a0a1a 0%, #0f0f23 100%) !important;
|
|
|
|
| 1145 |
font-family: system-ui, -apple-system, sans-serif;
|
| 1146 |
}
|
| 1147 |
|
| 1148 |
+
.dark, [data-theme="dark"] {
|
| 1149 |
+
color-scheme: dark !important;
|
| 1150 |
+
}
|
| 1151 |
+
|
| 1152 |
.gradio-container {
|
| 1153 |
max-width: 100% !important;
|
| 1154 |
width: 100% !important;
|
|
|
|
| 2072 |
}
|
| 2073 |
"""
|
| 2074 |
|
| 2075 |
+
with gr.Blocks() as demo:
|
| 2076 |
# Inject custom CSS and decorative elements (positioned fixed, no DOM space)
|
| 2077 |
gr.HTML(f"""
|
| 2078 |
<style>{custom_css}</style>
|