chansung commited on
Commit
dd39987
·
verified ·
1 Parent(s): 4d30b8d

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. gradio_app.py +95 -0
gradio_app.py CHANGED
@@ -203,6 +203,27 @@ def create_gradio_interface():
203
  font-family: 'Georgia', 'Times New Roman', serif !important;
204
  }
205
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
206
  /* Remove main tag margin and center */
207
  main {
208
  margin: 0 auto !important;
@@ -249,6 +270,62 @@ def create_gradio_interface():
249
  box-sizing: border-box !important;
250
  }
251
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
252
 
253
  /* Paper Buttons */
254
  .generate-btn {
@@ -837,6 +914,24 @@ def create_gradio_interface():
837
  font-family: 'Georgia', serif !important;
838
  }
839
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
840
 
841
  /* Custom scrollbar for code area */
842
  .code-container .cm-scroller::-webkit-scrollbar {
 
203
  font-family: 'Georgia', 'Times New Roman', serif !important;
204
  }
205
 
206
+ /* Dark mode global background */
207
+ @media (prefers-color-scheme: dark) {
208
+ .gradio-container {
209
+ background: #1a1a1a !important;
210
+ }
211
+ }
212
+
213
+ .dark,
214
+ .gradio-container.dark,
215
+ html.dark,
216
+ body.dark {
217
+ background: #1a1a1a !important;
218
+ }
219
+
220
+ .dark .gradio-container,
221
+ .gradio-container.dark,
222
+ html.dark .gradio-container,
223
+ body.dark .gradio-container {
224
+ background: #1a1a1a !important;
225
+ }
226
+
227
  /* Remove main tag margin and center */
228
  main {
229
  margin: 0 auto !important;
 
270
  box-sizing: border-box !important;
271
  }
272
 
273
+ /* Dark mode hero header */
274
+ @media (prefers-color-scheme: dark) {
275
+ .hero-header {
276
+ background: #2a2a2a !important;
277
+ border: 2px solid #404040 !important;
278
+ }
279
+ }
280
+
281
+ .dark .hero-header,
282
+ .gradio-container.dark .hero-header,
283
+ html.dark .hero-header,
284
+ body.dark .hero-header {
285
+ background: #2a2a2a !important;
286
+ border: 2px solid #404040 !important;
287
+ }
288
+
289
+ /* Dark mode hero header text */
290
+ @media (prefers-color-scheme: dark) {
291
+ .hero-header h1 {
292
+ color: #e5e5e5 !important;
293
+ }
294
+
295
+ .hero-header h2 {
296
+ color: #b3b3b3 !important;
297
+ }
298
+
299
+ .hero-header span {
300
+ background: #2a2a2a !important;
301
+ color: #e5e5e5 !important;
302
+ border: 1px solid #404040 !important;
303
+ }
304
+ }
305
+
306
+ .dark .hero-header h1,
307
+ .gradio-container.dark .hero-header h1,
308
+ html.dark .hero-header h1,
309
+ body.dark .hero-header h1 {
310
+ color: #e5e5e5 !important;
311
+ }
312
+
313
+ .dark .hero-header h2,
314
+ .gradio-container.dark .hero-header h2,
315
+ html.dark .hero-header h2,
316
+ body.dark .hero-header h2 {
317
+ color: #b3b3b3 !important;
318
+ }
319
+
320
+ .dark .hero-header span,
321
+ .gradio-container.dark .hero-header span,
322
+ html.dark .hero-header span,
323
+ body.dark .hero-header span {
324
+ background: #2a2a2a !important;
325
+ color: #e5e5e5 !important;
326
+ border: 1px solid #404040 !important;
327
+ }
328
+
329
 
330
  /* Paper Buttons */
331
  .generate-btn {
 
914
  font-family: 'Georgia', serif !important;
915
  }
916
 
917
+ /* Dark mode code header */
918
+ @media (prefers-color-scheme: dark) {
919
+ .code-container label {
920
+ background: #404040 !important;
921
+ color: #e5e5e5 !important;
922
+ border-bottom: 1px solid #666 !important;
923
+ }
924
+ }
925
+
926
+ .dark .code-container label,
927
+ .gradio-container.dark .code-container label,
928
+ html.dark .code-container label,
929
+ body.dark .code-container label {
930
+ background: #404040 !important;
931
+ color: #e5e5e5 !important;
932
+ border-bottom: 1px solid #666 !important;
933
+ }
934
+
935
 
936
  /* Custom scrollbar for code area */
937
  .code-container .cm-scroller::-webkit-scrollbar {