Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import os
|
| 3 |
css = """
|
| 4 |
-
|
| 5 |
--bg-primary: #0a0a0a;
|
| 6 |
--bg-secondary: #141414;
|
| 7 |
--bg-card: #1a1a1a;
|
|
@@ -137,99 +137,7 @@ css = """
|
|
| 137 |
border-top: 1px solid var(--border-color);
|
| 138 |
color: var(--text-secondary);
|
| 139 |
}
|
| 140 |
-
|
| 141 |
-
/* Fix slider colors to blue theme */
|
| 142 |
-
input[type="range"] {
|
| 143 |
-
-webkit-appearance: none !important;
|
| 144 |
-
background: transparent !important;
|
| 145 |
-
width: 100% !important;
|
| 146 |
-
}
|
| 147 |
-
|
| 148 |
-
input[type="range"]::-webkit-slider-track {
|
| 149 |
-
background: var(--bg-secondary, #141414) !important;
|
| 150 |
-
height: 6px !important;
|
| 151 |
-
border-radius: 3px !important;
|
| 152 |
-
border: 1px solid var(--border-color, #2a2a2a) !important;
|
| 153 |
-
}
|
| 154 |
-
|
| 155 |
-
input[type="range"]::-webkit-slider-thumb {
|
| 156 |
-
-webkit-appearance: none !important;
|
| 157 |
-
background: var(--accent-blue, #3b82f6) !important;
|
| 158 |
-
width: 18px !important;
|
| 159 |
-
height: 18px !important;
|
| 160 |
-
border-radius: 50% !important;
|
| 161 |
-
cursor: pointer !important;
|
| 162 |
-
margin-top: -6px !important;
|
| 163 |
-
box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
|
| 164 |
-
}
|
| 165 |
-
|
| 166 |
-
/* Firefox slider styling */
|
| 167 |
-
input[type="range"]::-moz-range-track {
|
| 168 |
-
background: var(--bg-secondary, #141414) !important;
|
| 169 |
-
height: 6px !important;
|
| 170 |
-
border-radius: 3px !important;
|
| 171 |
-
border: 1px solid var(--border-color, #2a2a2a) !important;
|
| 172 |
-
}
|
| 173 |
-
|
| 174 |
-
input[type="range"]::-moz-range-thumb {
|
| 175 |
-
background: var(--accent-blue, #3b82f6) !important;
|
| 176 |
-
width: 18px !important;
|
| 177 |
-
height: 18px !important;
|
| 178 |
-
border-radius: 50% !important;
|
| 179 |
-
cursor: pointer !important;
|
| 180 |
-
border: none !important;
|
| 181 |
-
}
|
| 182 |
-
|
| 183 |
-
/* Fix slider progress/fill color */
|
| 184 |
-
input[type="range"]::-webkit-slider-runnable-track {
|
| 185 |
-
background: linear-gradient(to right, var(--accent-blue, #3b82f6) 0%, var(--accent-blue, #3b82f6) var(--slider-progress, 30%), var(--bg-secondary, #141414) var(--slider-progress, 30%), var(--bg-secondary, #141414) 100%) !important;
|
| 186 |
-
}
|
| 187 |
-
|
| 188 |
-
/* Examples container padding */
|
| 189 |
-
.gr-examples {
|
| 190 |
-
padding: 1rem !important;
|
| 191 |
-
}
|
| 192 |
-
|
| 193 |
-
/* Examples grid/gallery padding */
|
| 194 |
-
.gr-examples .gr-samples-gallery {
|
| 195 |
-
padding: 0.5rem !important;
|
| 196 |
-
gap: 0.5rem !important;
|
| 197 |
-
}
|
| 198 |
-
|
| 199 |
-
/* Individual example buttons */
|
| 200 |
-
.gr-examples button {
|
| 201 |
-
background: var(--bg-secondary, #141414) !important;
|
| 202 |
-
border: 1px solid var(--border-color, #2a2a2a) !important;
|
| 203 |
-
color: var(--text-primary, #ffffff) !important;
|
| 204 |
-
padding: 0.75rem 1rem !important;
|
| 205 |
-
border-radius: 8px !important;
|
| 206 |
-
text-align: left !important;
|
| 207 |
-
font-size: 0.9rem !important;
|
| 208 |
-
line-height: 1.4 !important;
|
| 209 |
-
transition: all 0.2s ease !important;
|
| 210 |
-
margin-bottom: 0.5rem !important;
|
| 211 |
-
width: 100% !important;
|
| 212 |
-
}
|
| 213 |
-
|
| 214 |
-
.gr-examples button:hover {
|
| 215 |
-
background: var(--bg-hover, #252525) !important;
|
| 216 |
-
border-color: var(--accent-blue, #3b82f6) !important;
|
| 217 |
-
}
|
| 218 |
-
|
| 219 |
-
/* Examples container overall styling */
|
| 220 |
-
.gr-group:has(.gr-examples) {
|
| 221 |
-
padding: 1.5rem !important;
|
| 222 |
-
}
|
| 223 |
-
|
| 224 |
-
/* Alternative selector for examples container */
|
| 225 |
-
[data-testid="examples-container"],
|
| 226 |
-
.examples-container {
|
| 227 |
-
padding: 1.5rem !important;
|
| 228 |
-
}
|
| 229 |
-
|
| 230 |
-
#huggingface-space-header, footer{
|
| 231 |
-
display: none !important;
|
| 232 |
-
}
|
| 233 |
"""
|
| 234 |
|
| 235 |
token = os.environ["TOKEN"]
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import os
|
| 3 |
css = """
|
| 4 |
+
:root {
|
| 5 |
--bg-primary: #0a0a0a;
|
| 6 |
--bg-secondary: #141414;
|
| 7 |
--bg-card: #1a1a1a;
|
|
|
|
| 137 |
border-top: 1px solid var(--border-color);
|
| 138 |
color: var(--text-secondary);
|
| 139 |
}
|
| 140 |
+
.huggingface-space-header,footer { display: none !important; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 141 |
"""
|
| 142 |
|
| 143 |
token = os.environ["TOKEN"]
|