openfree commited on
Commit
32ceba2
ยท
verified ยท
1 Parent(s): c9eca3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +81 -5
app.py CHANGED
@@ -391,18 +391,34 @@ custom_theme = gr.themes.Base(
391
  border_color_accent_dark="#4338CA"
392
  )
393
 
394
- # CSS ์Šคํƒ€์ผ ํ†ตํ•ฉ
395
- css = '''
396
  /* ๊ธฐ๋ณธ ์Šคํƒ€์ผ */
397
  h1 {
398
  font-size: 3em;
399
  text-align: center;
400
  margin-bottom: 0.5em;
 
401
  }
402
 
403
  h3 {
404
  margin-top: 0;
405
  font-size: 1.2em;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
406
  }
407
 
408
  /* ์ปดํฌ๋„ŒํŠธ ์Šคํƒ€์ผ */
@@ -421,11 +437,32 @@ h3 {
421
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
422
  }
423
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
424
  /* ๋ฒ„ํŠผ ์Šคํƒ€์ผ */
425
  .button {
426
  height: 40px;
427
  border-radius: 8px;
428
  transition: all 0.3s ease;
 
429
  }
430
 
431
  .button:hover {
@@ -440,6 +477,7 @@ h3 {
440
  padding: 20px;
441
  text-align: center;
442
  margin-bottom: 20px;
 
443
  }
444
 
445
  /* ์บก์…˜ ์˜์—ญ */
@@ -448,6 +486,7 @@ h3 {
448
  padding: 15px;
449
  border-radius: 12px;
450
  margin-top: 20px;
 
451
  }
452
 
453
  .caption-row {
@@ -463,6 +502,7 @@ h3 {
463
  padding: 15px;
464
  border-radius: 12px;
465
  margin-top: 20px;
 
466
  }
467
 
468
  /* ์ง„ํ–‰ ์ƒํƒœ ํ‘œ์‹œ */
@@ -472,6 +512,22 @@ h3 {
472
  border-radius: 12px;
473
  margin-top: 20px;
474
  text-align: center;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
475
  }
476
 
477
  /* ๋ฐ˜์‘ํ˜• ๋””์ž์ธ */
@@ -499,14 +555,34 @@ h3 {
499
  ::-webkit-scrollbar-thumb:hover {
500
  background: var(--primary-600);
501
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
502
  '''
503
 
504
  # Gradio ์•ฑ ์ˆ˜์ •
505
  with gr.Blocks(theme=custom_theme, css=css) as demo:
 
506
  gr.Markdown(
507
- """# ๐Ÿ†” Gini LoRA ํ•™์Šต
508
- ### 1)LoRA ์ด๋ฆ„ ์˜์–ด๋กœ '์ž…๋ ฅ' 2)ํŠธ๋ฆฌ๊ฑฐ ๋‹จ์–ด ์˜์–ด๋กœ '์ž…๋ ฅ' 3)๊ธฐ๋ณธ ๋ชจ๋ธ 'ํด๋ฆญ' 4)์ด๋ฏธ์ง€(์ตœ์†Œ 2์žฅ~์ตœ๋Œ€ 150์žฅ ๋ฏธ๋งŒ) '์—…๋กœ๋“œ' 5)๋น„์ „ ์ธ์‹ LLM ๋ผ๋ฒจ๋ง 'ํด๋ฆญ' 6)START ํด๋ฆญ"""
509
- )
 
510
 
511
  with gr.Tab("Train"):
512
  with gr.Column(elem_classes="container"):
 
391
  border_color_accent_dark="#4338CA"
392
  )
393
 
394
+ css='''
 
395
  /* ๊ธฐ๋ณธ ์Šคํƒ€์ผ */
396
  h1 {
397
  font-size: 3em;
398
  text-align: center;
399
  margin-bottom: 0.5em;
400
+ color: white !important;
401
  }
402
 
403
  h3 {
404
  margin-top: 0;
405
  font-size: 1.2em;
406
+ color: white !important;
407
+ }
408
+
409
+ /* Markdown ํ…์ŠคํŠธ ์Šคํƒ€์ผ */
410
+ .markdown {
411
+ color: white !important;
412
+ }
413
+
414
+ .markdown h1,
415
+ .markdown h2,
416
+ .markdown h3,
417
+ .markdown h4,
418
+ .markdown h5,
419
+ .markdown h6,
420
+ .markdown p {
421
+ color: white !important;
422
  }
423
 
424
  /* ์ปดํฌ๋„ŒํŠธ ์Šคํƒ€์ผ */
 
437
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
438
  }
439
 
440
+ /* ๋ชจ๋“  ์ž…๋ ฅ ํ•„๋“œ ํ…์ŠคํŠธ ์ƒ‰์ƒ */
441
+ input, textarea, .gradio-textbox input, .gradio-textbox textarea, .gradio-number input {
442
+ color: white !important;
443
+ }
444
+
445
+ /* ๋ผ๋ฒจ ํ…์ŠคํŠธ ์Šคํƒ€์ผ */
446
+ label, .label-text {
447
+ color: white !important;
448
+ }
449
+
450
+ /* ๋ผ๋””์˜ค ๋ฒ„ํŠผ ํ…์ŠคํŠธ */
451
+ .gradio-radio label span {
452
+ color: white !important;
453
+ }
454
+
455
+ /* ์ฒดํฌ๋ฐ•์Šค ํ…์ŠคํŠธ */
456
+ .gradio-checkbox label span {
457
+ color: white !important;
458
+ }
459
+
460
  /* ๋ฒ„ํŠผ ์Šคํƒ€์ผ */
461
  .button {
462
  height: 40px;
463
  border-radius: 8px;
464
  transition: all 0.3s ease;
465
+ color: white !important;
466
  }
467
 
468
  .button:hover {
 
477
  padding: 20px;
478
  text-align: center;
479
  margin-bottom: 20px;
480
+ color: white !important;
481
  }
482
 
483
  /* ์บก์…˜ ์˜์—ญ */
 
486
  padding: 15px;
487
  border-radius: 12px;
488
  margin-top: 20px;
489
+ color: white !important;
490
  }
491
 
492
  .caption-row {
 
502
  padding: 15px;
503
  border-radius: 12px;
504
  margin-top: 20px;
505
+ color: white !important;
506
  }
507
 
508
  /* ์ง„ํ–‰ ์ƒํƒœ ํ‘œ์‹œ */
 
512
  border-radius: 12px;
513
  margin-top: 20px;
514
  text-align: center;
515
+ color: white !important;
516
+ }
517
+
518
+ /* ํ”Œ๋ ˆ์ด์Šคํ™€๋” ํ…์ŠคํŠธ */
519
+ ::placeholder {
520
+ color: rgba(255, 255, 255, 0.5) !important;
521
+ }
522
+
523
+ /* ์ฝ”๋“œ ์—๋””ํ„ฐ ํ…์ŠคํŠธ */
524
+ .gradio-code {
525
+ color: white !important;
526
+ }
527
+
528
+ /* ์•„์ฝ”๋””์–ธ ํ…์ŠคํŠธ */
529
+ .gradio-accordion .label-wrap {
530
+ color: white !important;
531
  }
532
 
533
  /* ๋ฐ˜์‘ํ˜• ๋””์ž์ธ */
 
555
  ::-webkit-scrollbar-thumb:hover {
556
  background: var(--primary-600);
557
  }
558
+
559
+ /* ๋ชจ๋“  ํ…์ŠคํŠธ ์ž…๋ ฅ ์š”์†Œ */
560
+ .gradio-container input[type="text"],
561
+ .gradio-container textarea,
562
+ .gradio-container .input-text,
563
+ .gradio-container .input-textarea {
564
+ color: white !important;
565
+ }
566
+
567
+ /* ๋“œ๋กญ๋‹ค์šด ํ…์ŠคํŠธ */
568
+ select, option {
569
+ color: white !important;
570
+ }
571
+
572
+ /* ๋ฒ„ํŠผ ํ…์ŠคํŠธ */
573
+ button {
574
+ color: white !important;
575
+ }
576
  '''
577
 
578
  # Gradio ์•ฑ ์ˆ˜์ •
579
  with gr.Blocks(theme=custom_theme, css=css) as demo:
580
+
581
  gr.Markdown(
582
+ """# ๐Ÿ†” Gini LoRA ํ•™์Šต
583
+ ### 1)LoRA ์ด๋ฆ„ ์˜์–ด๋กœ '์ž…๋ ฅ' 2)ํŠธ๋ฆฌ๊ฑฐ ๋‹จ์–ด ์˜์–ด๋กœ '์ž…๋ ฅ' 3)๊ธฐ๋ณธ ๋ชจ๋ธ 'ํด๋ฆญ' 4)์ด๋ฏธ์ง€(์ตœ์†Œ 2์žฅ~์ตœ๋Œ€ 150์žฅ ๋ฏธ๋งŒ) '์—…๋กœ๋“œ' 5)๋น„์ „ ์ธ์‹ LLM ๋ผ๋ฒจ๋ง 'ํด๋ฆญ' 6)START ํด๋ฆญ""",
584
+ elem_classes=["markdown"]
585
+ )
586
 
587
  with gr.Tab("Train"):
588
  with gr.Column(elem_classes="container"):