Spaces:
Sleeping
Sleeping
Update config.py
Browse files
config.py
CHANGED
|
@@ -77,6 +77,7 @@ except ImportError:
|
|
| 77 |
HTTPX_AVAILABLE = False
|
| 78 |
logger.warning("httpx not available - file upload functionality limited")
|
| 79 |
|
|
|
|
| 80 |
CUSTOM_CSS = """
|
| 81 |
/* Hide Gradio footer */
|
| 82 |
footer {
|
|
@@ -108,78 +109,4 @@ footer {
|
|
| 108 |
margin-bottom: 0 !important;
|
| 109 |
padding-bottom: 0 !important;
|
| 110 |
}
|
| 111 |
-
|
| 112 |
-
/* Sidebar spacing optimizations */
|
| 113 |
-
#main-sidebar {
|
| 114 |
-
padding: 0.75rem !important;
|
| 115 |
-
}
|
| 116 |
-
|
| 117 |
-
/* Reduce margins for all elements inside sidebar */
|
| 118 |
-
#main-sidebar > * {
|
| 119 |
-
margin-bottom: 0.5rem !important;
|
| 120 |
-
}
|
| 121 |
-
|
| 122 |
-
#main-sidebar > *:last-child {
|
| 123 |
-
margin-bottom: 0 !important;
|
| 124 |
-
}
|
| 125 |
-
|
| 126 |
-
/* Compact markdown spacing in sidebar */
|
| 127 |
-
#main-sidebar .markdown {
|
| 128 |
-
margin-bottom: 0.5rem !important;
|
| 129 |
-
padding: 0.25rem 0 !important;
|
| 130 |
-
}
|
| 131 |
-
|
| 132 |
-
#main-sidebar .markdown h1 {
|
| 133 |
-
margin-bottom: 0.5rem !important;
|
| 134 |
-
margin-top: 0 !important;
|
| 135 |
-
}
|
| 136 |
-
|
| 137 |
-
#main-sidebar .markdown h2 {
|
| 138 |
-
margin-bottom: 0.4rem !important;
|
| 139 |
-
margin-top: 0.5rem !important;
|
| 140 |
-
}
|
| 141 |
-
|
| 142 |
-
/* Accordion spacing optimization */
|
| 143 |
-
#main-sidebar .accordion {
|
| 144 |
-
margin-bottom: 0.5rem !important;
|
| 145 |
-
}
|
| 146 |
-
|
| 147 |
-
#main-sidebar .accordion summary {
|
| 148 |
-
padding: 0.5rem 0.75rem !important;
|
| 149 |
-
}
|
| 150 |
-
|
| 151 |
-
#main-sidebar .accordion .accordion-content {
|
| 152 |
-
padding: 0.5rem 0.75rem !important;
|
| 153 |
-
}
|
| 154 |
-
|
| 155 |
-
/* Textbox and input spacing */
|
| 156 |
-
#main-sidebar .textbox,
|
| 157 |
-
#main-sidebar .dropdown {
|
| 158 |
-
margin-bottom: 0.5rem !important;
|
| 159 |
-
}
|
| 160 |
-
|
| 161 |
-
#main-sidebar .textbox label,
|
| 162 |
-
#main-sidebar .dropdown label {
|
| 163 |
-
margin-bottom: 0.25rem !important;
|
| 164 |
-
}
|
| 165 |
-
|
| 166 |
-
/* Button spacing */
|
| 167 |
-
#main-sidebar .button {
|
| 168 |
-
margin-bottom: 0.5rem !important;
|
| 169 |
-
margin-top: 0.25rem !important;
|
| 170 |
-
}
|
| 171 |
-
|
| 172 |
-
/* Server status section compact spacing */
|
| 173 |
-
#main-sidebar .status-section {
|
| 174 |
-
margin-bottom: 0.75rem !important;
|
| 175 |
-
}
|
| 176 |
-
|
| 177 |
-
/* Remove excessive padding from form elements */
|
| 178 |
-
#main-sidebar .form {
|
| 179 |
-
gap: 0.5rem !important;
|
| 180 |
-
}
|
| 181 |
-
|
| 182 |
-
#main-sidebar .form > * {
|
| 183 |
-
margin-bottom: 0.25rem !important;
|
| 184 |
-
}
|
| 185 |
"""
|
|
|
|
| 77 |
HTTPX_AVAILABLE = False
|
| 78 |
logger.warning("httpx not available - file upload functionality limited")
|
| 79 |
|
| 80 |
+
# CSS Configuration
|
| 81 |
CUSTOM_CSS = """
|
| 82 |
/* Hide Gradio footer */
|
| 83 |
footer {
|
|
|
|
| 109 |
margin-bottom: 0 !important;
|
| 110 |
padding-bottom: 0 !important;
|
| 111 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
"""
|