Saicharan21 commited on
Commit
f2dc563
·
verified ·
1 Parent(s): 3bb99c4

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +87 -0
app.py CHANGED
@@ -291,6 +291,93 @@ div.gradio-group, div.gradio-row, div.gradio-column {
291
  border-color: rgba(255,255,255,0.08) !important;
292
  }
293
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
294
  """
295
 
296
  HEADER = """
 
291
  border-color: rgba(255,255,255,0.08) !important;
292
  }
293
 
294
+ /* GRADIO 6.x OVERRIDES */
295
+ .svelte-1gfkn6j, .svelte-1ipelgc, .svelte-1occ011 {
296
+ background: rgba(255,255,255,0.06) !important;
297
+ color: rgba(255,255,255,0.9) !important;
298
+ border-color: rgba(255,255,255,0.12) !important;
299
+ }
300
+
301
+ /* Fix all containers */
302
+ .container, .wrap, .form {
303
+ background: transparent !important;
304
+ border-color: rgba(255,255,255,0.08) !important;
305
+ }
306
+
307
+ /* Fix dropdowns */
308
+ .multiselect, .dropdown, ul.options {
309
+ background: #0d1117 !important;
310
+ color: rgba(255,255,255,0.9) !important;
311
+ border-color: rgba(255,255,255,0.15) !important;
312
+ }
313
+
314
+ ul.options li {
315
+ background: #0d1117 !important;
316
+ color: rgba(255,255,255,0.85) !important;
317
+ }
318
+
319
+ ul.options li:hover {
320
+ background: rgba(193,18,31,0.2) !important;
321
+ }
322
+
323
+ /* Fix radio buttons */
324
+ .radio-group label, .radio-group span {
325
+ color: rgba(255,255,255,0.8) !important;
326
+ }
327
+
328
+ /* Fix all textboxes */
329
+ .scroll-hide, .overflow-y-auto {
330
+ background: rgba(255,255,255,0.05) !important;
331
+ color: rgba(255,255,255,0.9) !important;
332
+ }
333
+
334
+ /* Fix number inputs */
335
+ input[type=number] {
336
+ background: rgba(255,255,255,0.06) !important;
337
+ color: rgba(255,255,255,0.9) !important;
338
+ border: 1px solid rgba(255,255,255,0.12) !important;
339
+ }
340
+
341
+ /* Fix file upload */
342
+ .file-preview, .upload-button {
343
+ background: rgba(255,255,255,0.04) !important;
344
+ color: rgba(255,255,255,0.7) !important;
345
+ border-color: rgba(255,255,255,0.15) !important;
346
+ }
347
+
348
+ /* Fix all white backgrounds */
349
+ .bg-white, .bg-gray-50, .bg-gray-100 {
350
+ background: rgba(255,255,255,0.04) !important;
351
+ }
352
+
353
+ /* Gradio panel backgrounds */
354
+ div.gradio-group, div.gradio-row, div.gradio-column {
355
+ background: transparent !important;
356
+ }
357
+
358
+ /* Fix image containers */
359
+ .image-container, .preview-container {
360
+ background: rgba(255,255,255,0.04) !important;
361
+ border: 1px solid rgba(255,255,255,0.08) !important;
362
+ border-radius: 14px !important;
363
+ }
364
+
365
+ /* Fix audio component */
366
+ .audio-container, .waveform-container {
367
+ background: rgba(255,255,255,0.04) !important;
368
+ border-radius: 14px !important;
369
+ }
370
+
371
+ /* Fix markdown */
372
+ .prose p, .prose h1, .prose h2, .prose h3 {
373
+ color: rgba(255,255,255,0.85) !important;
374
+ }
375
+
376
+ /* Fix all borders */
377
+ .border, .border-gray-200, .border-gray-300 {
378
+ border-color: rgba(255,255,255,0.08) !important;
379
+ }
380
+
381
  """
382
 
383
  HEADER = """