Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,11 +11,95 @@ import threading
|
|
| 11 |
import gradio as gr
|
| 12 |
|
| 13 |
CUSTOM_CSS = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
#huggingface-space-header {
|
| 15 |
display: none !important;
|
| 16 |
}
|
| 17 |
-
"""
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
# ============================================================
|
| 20 |
# APP CONFIG
|
| 21 |
# ============================================================
|
|
|
|
| 11 |
import gradio as gr
|
| 12 |
|
| 13 |
CUSTOM_CSS = """
|
| 14 |
+
/* =========================================================
|
| 15 |
+
HOW MUCH FEED — FORCE LIGHT MOBILE THEME
|
| 16 |
+
========================================================= */
|
| 17 |
+
|
| 18 |
+
:root {
|
| 19 |
+
--app-bg-main: #f4f7f5;
|
| 20 |
+
--app-card-surface: #ffffff;
|
| 21 |
+
|
| 22 |
+
--brand-primary-mint: #00a86b;
|
| 23 |
+
--brand-dark-charcoal: #0b3022;
|
| 24 |
+
--brand-accent-yellow: #ffb800;
|
| 25 |
+
|
| 26 |
+
--ui-border-muted: #d6e0db;
|
| 27 |
+
--text-helper: #5a6e65;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
/* Force light page background */
|
| 31 |
+
html,
|
| 32 |
+
body,
|
| 33 |
+
.gradio-container {
|
| 34 |
+
background: #f4f7f5 !important;
|
| 35 |
+
color: #0b3022 !important;
|
| 36 |
+
color-scheme: light !important;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
/* Force Gradio's dark-mode variables back to light values */
|
| 40 |
+
.gradio-container {
|
| 41 |
+
--body-background-fill: #f4f7f5 !important;
|
| 42 |
+
--body-background-fill-dark: #f4f7f5 !important;
|
| 43 |
+
|
| 44 |
+
--body-text-color: #0b3022 !important;
|
| 45 |
+
--body-text-color-dark: #0b3022 !important;
|
| 46 |
+
|
| 47 |
+
--body-text-color-subdued: #5a6e65 !important;
|
| 48 |
+
--body-text-color-subdued-dark: #5a6e65 !important;
|
| 49 |
+
|
| 50 |
+
--background-fill-primary: #ffffff !important;
|
| 51 |
+
--background-fill-primary-dark: #ffffff !important;
|
| 52 |
+
|
| 53 |
+
--background-fill-secondary: #f4f7f5 !important;
|
| 54 |
+
--background-fill-secondary-dark: #f4f7f5 !important;
|
| 55 |
+
|
| 56 |
+
--border-color-primary: #d6e0db !important;
|
| 57 |
+
--border-color-primary-dark: #d6e0db !important;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
/* Inputs */
|
| 61 |
+
.gradio-container input,
|
| 62 |
+
.gradio-container textarea,
|
| 63 |
+
.gradio-container select,
|
| 64 |
+
.gradio-container button {
|
| 65 |
+
color-scheme: light !important;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
/* Input fields */
|
| 69 |
+
.gradio-container input,
|
| 70 |
+
.gradio-container textarea {
|
| 71 |
+
background: #ffffff !important;
|
| 72 |
+
color: #0b3022 !important;
|
| 73 |
+
border-color: #d6e0db !important;
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
/* Dropdowns */
|
| 77 |
+
.gradio-container select {
|
| 78 |
+
background-color: #ffffff !important;
|
| 79 |
+
color: #0b3022 !important;
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
/* Cards / panels */
|
| 83 |
+
.gradio-container .block,
|
| 84 |
+
.gradio-container .form,
|
| 85 |
+
.gradio-container .panel {
|
| 86 |
+
background: #ffffff;
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
/* Keep Hugging Face header hidden */
|
| 90 |
#huggingface-space-header {
|
| 91 |
display: none !important;
|
| 92 |
}
|
|
|
|
| 93 |
|
| 94 |
+
/* Mobile */
|
| 95 |
+
@media (max-width: 768px) {
|
| 96 |
+
html,
|
| 97 |
+
body,
|
| 98 |
+
.gradio-container {
|
| 99 |
+
background: #f4f7f5 !important;
|
| 100 |
+
}
|
| 101 |
+
}
|
| 102 |
+
"""
|
| 103 |
# ============================================================
|
| 104 |
# APP CONFIG
|
| 105 |
# ============================================================
|