Spaces:
Runtime error
Runtime error
freshyfresco
commited on
Commit
•
214b2d9
1
Parent(s):
65a6a6f
Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,258 @@ class Applio(Base):
|
|
67 |
# Rest of your theme settings...
|
68 |
self.name = "Applio"
|
69 |
self.secondary_100 = "#dbeafe"
|
70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
|
72 |
# Define the Gradio application
|
73 |
with gr.Blocks(theme=Applio(), title="Applio") as ApplioApp:
|
|
|
67 |
# Rest of your theme settings...
|
68 |
self.name = "Applio"
|
69 |
self.secondary_100 = "#dbeafe"
|
70 |
+
self.secondary_200 = "#bfdbfe"
|
71 |
+
self.secondary_300 = "#93c5fd"
|
72 |
+
self.secondary_400 = "#60a5fa"
|
73 |
+
self.secondary_50 = "#eff6ff"
|
74 |
+
self.secondary_500 = "#3b82f6"
|
75 |
+
self.secondary_600 = "#2563eb"
|
76 |
+
self.secondary_700 = "#1d4ed8"
|
77 |
+
self.secondary_800 = "#1e40af"
|
78 |
+
self.secondary_900 = "#1e3a8a"
|
79 |
+
self.secondary_950 = "#1d3660"
|
80 |
+
|
81 |
+
super().set(
|
82 |
+
# Blaise
|
83 |
+
background_fill_primary= "black",
|
84 |
+
background_fill_primary_dark="black",
|
85 |
+
background_fill_secondary= "black",
|
86 |
+
background_fill_secondary_dark="black",
|
87 |
+
block_background_fill= "*neutral_800",
|
88 |
+
block_background_fill_dark="*neutral_800",
|
89 |
+
block_border_color= "*border_color_primary",
|
90 |
+
block_border_color_dark= "*border_color_primary",
|
91 |
+
block_border_width= "1px",
|
92 |
+
block_border_width_dark= "1px",
|
93 |
+
block_info_text_color= "*body_text_color_subdued",
|
94 |
+
block_info_text_color_dark= "*body_text_color_subdued",
|
95 |
+
block_info_text_size= "*text_sm",
|
96 |
+
block_info_text_weight= "400",
|
97 |
+
block_label_background_fill= "*background_fill_primary",
|
98 |
+
block_label_background_fill_dark= "*background_fill_secondary",
|
99 |
+
block_label_border_color= "*border_color_primary",
|
100 |
+
block_label_border_color_dark= "*border_color_primary",
|
101 |
+
block_label_border_width= "1px",
|
102 |
+
block_label_border_width_dark= "1px",
|
103 |
+
block_label_margin= "0",
|
104 |
+
block_label_padding= "*spacing_sm *spacing_lg",
|
105 |
+
block_label_radius= "calc(*radius_lg - 1px) 0 calc(*radius_lg - 1px) 0",
|
106 |
+
block_label_right_radius= "0 calc(*radius_lg - 1px) 0 calc(*radius_lg - 1px)",
|
107 |
+
block_label_shadow= "*block_shadow",
|
108 |
+
block_label_text_color= "*neutral_200",
|
109 |
+
block_label_text_color_dark= "*neutral_200",
|
110 |
+
block_label_text_weight= "400",
|
111 |
+
block_padding= "*spacing_xl",
|
112 |
+
block_radius= "*radius_md",
|
113 |
+
block_shadow= "none",
|
114 |
+
block_shadow_dark= "none",
|
115 |
+
block_title_background_fill= "rgba(46,85,65,255)",
|
116 |
+
block_title_background_fill_dark= "rgba(46,85,65,255)",
|
117 |
+
block_title_border_color= "none",
|
118 |
+
block_title_border_color_dark= "none",
|
119 |
+
block_title_border_width= "0px",
|
120 |
+
block_title_padding= "*block_label_padding",
|
121 |
+
block_title_radius= "*block_label_radius",
|
122 |
+
block_title_text_color= "*neutral_200",
|
123 |
+
block_title_text_color_dark= "*neutral_200",
|
124 |
+
block_title_text_size= "*text_md",
|
125 |
+
block_title_text_weight= "600",
|
126 |
+
body_background_fill= "black",
|
127 |
+
body_background_fill_dark= "black",
|
128 |
+
body_text_color= "white",
|
129 |
+
body_text_color_dark= "white",
|
130 |
+
body_text_color_subdued= "*neutral_400",
|
131 |
+
body_text_color_subdued_dark= "*neutral_400",
|
132 |
+
body_text_size= "*text_md",
|
133 |
+
body_text_weight= "400",
|
134 |
+
border_color_accent= "*neutral_600",
|
135 |
+
border_color_accent_dark= "*neutral_600",
|
136 |
+
border_color_primary= "*neutral_800",
|
137 |
+
border_color_primary_dark= "*neutral_800",
|
138 |
+
button_border_width= "*input_border_width",
|
139 |
+
button_border_width_dark= "*input_border_width",
|
140 |
+
button_cancel_background_fill= "*button_secondary_background_fill",
|
141 |
+
button_cancel_background_fill_dark= "*button_secondary_background_fill",
|
142 |
+
button_cancel_background_fill_hover= "*button_cancel_background_fill",
|
143 |
+
button_cancel_background_fill_hover_dark= "*button_cancel_background_fill",
|
144 |
+
button_cancel_border_color= "*button_secondary_border_color",
|
145 |
+
button_cancel_border_color_dark= "*button_secondary_border_color",
|
146 |
+
button_cancel_border_color_hover= "*button_cancel_border_color",
|
147 |
+
button_cancel_border_color_hover_dark= "*button_cancel_border_color",
|
148 |
+
button_cancel_text_color= "*button_secondary_text_color",
|
149 |
+
button_cancel_text_color_dark= "*button_secondary_text_color",
|
150 |
+
button_cancel_text_color_hover= "*button_cancel_text_color",
|
151 |
+
button_cancel_text_color_hover_dark= "*button_cancel_text_color",
|
152 |
+
button_large_padding= "*spacing_lg calc(2 * *spacing_lg)",
|
153 |
+
button_large_radius= "*radius_lg",
|
154 |
+
button_large_text_size= "*text_lg",
|
155 |
+
button_large_text_weight= "600",
|
156 |
+
button_primary_background_fill= "*primary_600",
|
157 |
+
button_primary_background_fill_dark= "*primary_600",
|
158 |
+
button_primary_background_fill_hover= "*primary_500",
|
159 |
+
button_primary_background_fill_hover_dark= "*primary_500",
|
160 |
+
button_primary_border_color= "*primary_500",
|
161 |
+
button_primary_border_color_dark= "*primary_500",
|
162 |
+
button_primary_border_color_hover= "*primary_400",
|
163 |
+
button_primary_border_color_hover_dark= "*primary_400",
|
164 |
+
button_primary_text_color= "white",
|
165 |
+
button_primary_text_color_dark= "white",
|
166 |
+
button_primary_text_color_hover= "*button_primary_text_color",
|
167 |
+
button_primary_text_color_hover_dark= "*button_primary_text_color",
|
168 |
+
button_secondary_background_fill= "transparent",
|
169 |
+
button_secondary_background_fill_dark= "transparent",
|
170 |
+
button_secondary_background_fill_hover= "*neutral_800",
|
171 |
+
button_secondary_background_fill_hover_dark= "*neutral_800",
|
172 |
+
button_secondary_border_color= "*neutral_700",
|
173 |
+
button_secondary_border_color_dark= "*neutral_700",
|
174 |
+
button_secondary_border_color_hover= "*neutral_600",
|
175 |
+
button_secondary_border_color_hover_dark= "*neutral_600",
|
176 |
+
button_secondary_text_color= "white",
|
177 |
+
button_secondary_text_color_dark= "white",
|
178 |
+
button_secondary_text_color_hover= "*button_secondary_text_color",
|
179 |
+
button_secondary_text_color_hover_dark= "*button_secondary_text_color",
|
180 |
+
button_shadow= "none",
|
181 |
+
button_shadow_active= "*shadow_inset",
|
182 |
+
button_shadow_hover= "none",
|
183 |
+
button_small_padding= "*spacing_sm calc(2 * *spacing_sm)",
|
184 |
+
button_small_radius= "*radius_lg",
|
185 |
+
button_small_text_size= "*text_md",
|
186 |
+
button_small_text_weight= "400",
|
187 |
+
button_transition= "0.3s ease all",
|
188 |
+
chatbot_code_background_color= "*neutral_800",
|
189 |
+
chatbot_code_background_color_dark= "*neutral_800",
|
190 |
+
checkbox_background_color= "*neutral_700",
|
191 |
+
checkbox_background_color_dark= "*neutral_700",
|
192 |
+
checkbox_background_color_focus= "*checkbox_background_color",
|
193 |
+
checkbox_background_color_focus_dark= "*checkbox_background_color",
|
194 |
+
checkbox_background_color_hover= "*checkbox_background_color",
|
195 |
+
checkbox_background_color_hover_dark= "*checkbox_background_color",
|
196 |
+
checkbox_background_color_selected= "*secondary_600",
|
197 |
+
checkbox_background_color_selected_dark= "*secondary_600",
|
198 |
+
checkbox_border_color= "*neutral_700",
|
199 |
+
checkbox_border_color_dark= "*neutral_700",
|
200 |
+
checkbox_border_color_focus= "*secondary_500",
|
201 |
+
checkbox_border_color_focus_dark= "*secondary_500",
|
202 |
+
checkbox_border_color_hover= "*neutral_600",
|
203 |
+
checkbox_border_color_hover_dark= "*neutral_600",
|
204 |
+
checkbox_border_color_selected= "*secondary_600",
|
205 |
+
checkbox_border_color_selected_dark= "*secondary_600",
|
206 |
+
checkbox_border_radius= "*radius_sm",
|
207 |
+
checkbox_border_width= "*input_border_width",
|
208 |
+
checkbox_border_width_dark= "*input_border_width",
|
209 |
+
checkbox_check= "url(\"data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e\")",
|
210 |
+
checkbox_label_background_fill= "transparent",
|
211 |
+
checkbox_label_background_fill_dark= "transparent",
|
212 |
+
checkbox_label_background_fill_hover= "transparent",
|
213 |
+
checkbox_label_background_fill_hover_dark= "transparent",
|
214 |
+
checkbox_label_background_fill_selected= "transparent",
|
215 |
+
checkbox_label_background_fill_selected_dark= "transparent",
|
216 |
+
checkbox_label_border_color= "transparent",
|
217 |
+
checkbox_label_border_color_dark= "transparent",
|
218 |
+
checkbox_label_border_color_hover= "transparent",
|
219 |
+
checkbox_label_border_color_hover_dark= "transparent",
|
220 |
+
checkbox_label_border_width= "transparent",
|
221 |
+
checkbox_label_border_width_dark= "transparent",
|
222 |
+
checkbox_label_gap= "*spacing_lg",
|
223 |
+
checkbox_label_padding= "*spacing_md calc(2 * *spacing_md)",
|
224 |
+
checkbox_label_shadow= "none",
|
225 |
+
checkbox_label_text_color= "*body_text_color",
|
226 |
+
checkbox_label_text_color_dark= "*body_text_color",
|
227 |
+
checkbox_label_text_color_selected= "*checkbox_label_text_color",
|
228 |
+
checkbox_label_text_color_selected_dark= "*checkbox_label_text_color",
|
229 |
+
checkbox_label_text_size= "*text_md",
|
230 |
+
checkbox_label_text_weight= "400",
|
231 |
+
checkbox_shadow= "*input_shadow",
|
232 |
+
color_accent= "*primary_500",
|
233 |
+
color_accent_soft= "*primary_50",
|
234 |
+
color_accent_soft_dark= "*neutral_700",
|
235 |
+
container_radius= "*radius_xl",
|
236 |
+
embed_radius= "*radius_lg",
|
237 |
+
error_background_fill= "*background_fill_primary",
|
238 |
+
error_background_fill_dark= "*background_fill_primary",
|
239 |
+
error_border_color= "*border_color_primary",
|
240 |
+
error_border_color_dark= "*border_color_primary",
|
241 |
+
error_border_width= "1px",
|
242 |
+
error_border_width_dark= "1px",
|
243 |
+
error_text_color= "#ef4444",
|
244 |
+
error_text_color_dark= "#ef4444",
|
245 |
+
|
246 |
+
form_gap_width= "0px",
|
247 |
+
input_background_fill= "*neutral_900",
|
248 |
+
input_background_fill_dark= "*neutral_900",
|
249 |
+
input_background_fill_focus= "*secondary_600",
|
250 |
+
input_background_fill_focus_dark= "*secondary_600",
|
251 |
+
input_background_fill_hover= "*input_background_fill",
|
252 |
+
input_background_fill_hover_dark= "*input_background_fill",
|
253 |
+
input_border_color= "*neutral_700",
|
254 |
+
input_border_color_dark= "*neutral_700",
|
255 |
+
input_border_color_focus= "*secondary_600",
|
256 |
+
input_border_color_focus_dark= "*primary_600",
|
257 |
+
input_border_color_hover= "*input_border_color",
|
258 |
+
input_border_color_hover_dark= "*input_border_color",
|
259 |
+
input_border_width= "1px",
|
260 |
+
input_border_width_dark= "1px",
|
261 |
+
input_padding= "*spacing_xl",
|
262 |
+
input_placeholder_color= "*neutral_500",
|
263 |
+
input_placeholder_color_dark= "*neutral_500",
|
264 |
+
input_radius= "*radius_lg",
|
265 |
+
input_shadow= "none",
|
266 |
+
input_shadow_dark= "none",
|
267 |
+
input_shadow_focus= "*input_shadow",
|
268 |
+
input_shadow_focus_dark= "*input_shadow",
|
269 |
+
input_text_size= "*text_md",
|
270 |
+
input_text_weight= "400",
|
271 |
+
layout_gap= "*spacing_xxl",
|
272 |
+
link_text_color= "*secondary_500",
|
273 |
+
link_text_color_active= "*secondary_500",
|
274 |
+
link_text_color_active_dark= "*secondary_500",
|
275 |
+
link_text_color_dark= "*secondary_500",
|
276 |
+
link_text_color_hover= "*secondary_400",
|
277 |
+
link_text_color_hover_dark= "*secondary_400",
|
278 |
+
link_text_color_visited= "*secondary_600",
|
279 |
+
link_text_color_visited_dark= "*secondary_600",
|
280 |
+
loader_color= "*color_accent",
|
281 |
+
loader_color_dark= "*color_accent",
|
282 |
+
|
283 |
+
panel_background_fill= "*background_fill_secondary",
|
284 |
+
panel_background_fill_dark= "*background_fill_secondary",
|
285 |
+
panel_border_color= "*border_color_primary",
|
286 |
+
panel_border_color_dark= "*border_color_primary",
|
287 |
+
panel_border_width= "1px",
|
288 |
+
panel_border_width_dark= "1px",
|
289 |
+
|
290 |
+
|
291 |
+
prose_header_text_weight= "600",
|
292 |
+
prose_text_size= "*text_md",
|
293 |
+
prose_text_weight= "400",
|
294 |
+
radio_circle= "url(\"data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e\")",
|
295 |
+
|
296 |
+
section_header_text_size= "*text_md",
|
297 |
+
section_header_text_weight= "400",
|
298 |
+
shadow_drop= "rgba(0,0,0,0.05) 0px 1px 2px 0px",
|
299 |
+
shadow_drop_lg= "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
|
300 |
+
shadow_inset= "rgba(0,0,0,0.05) 0px 2px 4px 0px inset",
|
301 |
+
shadow_spread= "3px",
|
302 |
+
shadow_spread_dark= "1px",
|
303 |
+
slider_color= "*primary_600",
|
304 |
+
slider_color_dark= "*primary_600",
|
305 |
+
|
306 |
+
stat_background_fill= "*primary_500",
|
307 |
+
stat_background_fill_dark= "*primary_500",
|
308 |
+
table_border_color= "*neutral_700",
|
309 |
+
table_border_color_dark= "*neutral_700",
|
310 |
+
table_even_background_fill= "*neutral_950",
|
311 |
+
table_even_background_fill_dark= "*neutral_950",
|
312 |
+
table_odd_background_fill= "*neutral_900",
|
313 |
+
table_odd_background_fill_dark= "*neutral_900",
|
314 |
+
table_radius= "*radius_lg",
|
315 |
+
table_row_focus= "*color_accent_soft",
|
316 |
+
table_row_focus_dark= "*color_accent_soft",
|
317 |
+
|
318 |
+
)
|
319 |
+
|
320 |
+
|
321 |
+
|
322 |
|
323 |
# Define the Gradio application
|
324 |
with gr.Blocks(theme=Applio(), title="Applio") as ApplioApp:
|