Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -391,18 +391,34 @@ custom_theme = gr.themes.Base(
|
|
391 |
border_color_accent_dark="#4338CA"
|
392 |
)
|
393 |
|
394 |
-
|
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 |
-
|
508 |
-
|
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"):
|