Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
6d39d9c
1
Parent(s):
155d4e6
fix: 문구, metric view
Browse files- tabs/leaderboard_v1_kr.py +84 -22
tabs/leaderboard_v1_kr.py
CHANGED
|
@@ -819,12 +819,13 @@ def create_leaderboard_v2_tab():
|
|
| 819 |
-webkit-background-clip: text;
|
| 820 |
-webkit-text-fill-color: transparent;
|
| 821 |
margin-bottom: 1rem;
|
|
|
|
| 822 |
}
|
| 823 |
|
| 824 |
.hero-subtitle {
|
| 825 |
color: var(--text-secondary);
|
| 826 |
font-size: 1.25rem;
|
| 827 |
-
font-family: '
|
| 828 |
margin-top: 0;
|
| 829 |
}
|
| 830 |
|
|
@@ -883,6 +884,7 @@ def create_leaderboard_v2_tab():
|
|
| 883 |
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
|
| 884 |
backdrop-filter: blur(12px);
|
| 885 |
-webkit-backdrop-filter: blur(12px);
|
|
|
|
| 886 |
}
|
| 887 |
|
| 888 |
.dashboard-section.emphasized {
|
|
@@ -907,10 +909,11 @@ def create_leaderboard_v2_tab():
|
|
| 907 |
color: var(--text-primary);
|
| 908 |
margin-bottom: 12px;
|
| 909 |
text-align: center !important;
|
|
|
|
| 910 |
}
|
| 911 |
|
| 912 |
.section-lead, .section-subtitle {
|
| 913 |
-
font-size: 1.
|
| 914 |
color: var(--text-secondary);
|
| 915 |
max-width: 720px;
|
| 916 |
margin: 0 auto 24px auto;
|
|
@@ -919,6 +922,7 @@ def create_leaderboard_v2_tab():
|
|
| 919 |
word-break: keep-all;
|
| 920 |
white-space: normal;
|
| 921 |
display: block;
|
|
|
|
| 922 |
}
|
| 923 |
|
| 924 |
.phase-grid {
|
|
@@ -936,10 +940,11 @@ def create_leaderboard_v2_tab():
|
|
| 936 |
}
|
| 937 |
|
| 938 |
.phase-card h3 {
|
| 939 |
-
font-size: 1.
|
| 940 |
color: var(--text-primary);
|
| 941 |
margin-bottom: 20px;
|
| 942 |
font-weight: 700;
|
|
|
|
| 943 |
}
|
| 944 |
|
| 945 |
.phase-chart {
|
|
@@ -967,20 +972,23 @@ def create_leaderboard_v2_tab():
|
|
| 967 |
|
| 968 |
.phase-chart span {
|
| 969 |
position: relative;
|
| 970 |
-
font-size: 1.
|
| 971 |
font-weight: 700;
|
| 972 |
color: white !important;
|
|
|
|
| 973 |
}
|
| 974 |
|
| 975 |
/* 추가적인 구체적 선택자 */
|
| 976 |
.phase-card .phase-chart span {
|
| 977 |
color: #FFFFFF !important;
|
| 978 |
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
|
|
|
|
| 979 |
}
|
| 980 |
|
| 981 |
.phase-grid .phase-chart span {
|
| 982 |
color: #FFFFFF !important;
|
| 983 |
z-index: 10 !important;
|
|
|
|
| 984 |
}
|
| 985 |
|
| 986 |
|
|
@@ -998,7 +1006,8 @@ def create_leaderboard_v2_tab():
|
|
| 998 |
background: rgba(245, 246, 247, 0.05);
|
| 999 |
border: 1px solid rgba(245, 246, 247, 0.08);
|
| 1000 |
color: var(--text-secondary);
|
| 1001 |
-
font-size:
|
|
|
|
| 1002 |
}
|
| 1003 |
|
| 1004 |
.scenario-body {
|
|
@@ -1344,6 +1353,7 @@ def create_leaderboard_v2_tab():
|
|
| 1344 |
filter: drop-shadow(0 0 16px rgba(255, 210, 30, 0.35));
|
| 1345 |
letter-spacing: 0.02em;
|
| 1346 |
animation: title-shimmer 5s ease-in-out infinite;
|
|
|
|
| 1347 |
}
|
| 1348 |
|
| 1349 |
@keyframes title-shimmer {
|
|
@@ -2044,7 +2054,7 @@ def create_leaderboard_v2_tab():
|
|
| 2044 |
leaderboard_title = gr.HTML(update_leaderboard_title(default_level))
|
| 2045 |
|
| 2046 |
# Integrated controls within leaderboard section - stacked vertically
|
| 2047 |
-
gr.HTML("<
|
| 2048 |
domain_filter = gr.Radio(
|
| 2049 |
choices=level_options,
|
| 2050 |
value=default_level,
|
|
@@ -2053,11 +2063,11 @@ def create_leaderboard_v2_tab():
|
|
| 2053 |
container=False,
|
| 2054 |
elem_classes=["domain-radio", "inline-radio"]
|
| 2055 |
)
|
| 2056 |
-
|
| 2057 |
-
gr.HTML("<
|
| 2058 |
with gr.Row():
|
| 2059 |
with gr.Column(scale=1):
|
| 2060 |
-
gr.HTML("<span style='color: white; font-size:
|
| 2061 |
model_type_filter = gr.Radio(
|
| 2062 |
choices=["All", "OSS", "API"],
|
| 2063 |
value="All",
|
|
@@ -2066,7 +2076,7 @@ def create_leaderboard_v2_tab():
|
|
| 2066 |
container=False
|
| 2067 |
)
|
| 2068 |
with gr.Column(scale=1):
|
| 2069 |
-
gr.HTML("<span style='color: white; font-size:
|
| 2070 |
sort_order = gr.Radio(
|
| 2071 |
choices=["Descending", "Ascending"],
|
| 2072 |
value="Descending",
|
|
@@ -2085,9 +2095,9 @@ def create_leaderboard_v2_tab():
|
|
| 2085 |
<p class="domain-subtitle" style="color: white;">6가지 필수 핵심 요소(성공, 실행, 추론, 강건성, 효율성, 호출 유효성)를 추적합니다.</p>
|
| 2086 |
</div>
|
| 2087 |
""")
|
| 2088 |
-
|
| 2089 |
-
gr.HTML("<
|
| 2090 |
-
gr.HTML("<p style='color: #b0b0b0; margin: 0 0 10px 0; font-size: 0.9rem;'>모델은 최대 5개까지 선택 가능 합니다.</p>")
|
| 2091 |
model_selector = gr.Dropdown(
|
| 2092 |
choices=initial_df['Model'].tolist()[:10],
|
| 2093 |
value=initial_df['Model'].tolist()[:5],
|
|
@@ -2272,15 +2282,14 @@ def create_leaderboard_v2_tab():
|
|
| 2272 |
※ Rank는 L1~L7 단계별 SR의 평균값을 기준으로 선정되었습니다.
|
| 2273 |
</p>
|
| 2274 |
</div>
|
|
|
|
| 2275 |
<div class="performance-card-content">
|
| 2276 |
""")
|
| 2277 |
-
|
| 2278 |
with gr.Column(elem_classes=["domain-selector-container", "model-selector-container"], elem_id="model-selector-box"):
|
| 2279 |
gr.HTML("""
|
| 2280 |
-
<
|
| 2281 |
-
|
| 2282 |
-
<p class="domain-subtitle" style="color: white;">분석 카드에 포함할 모델을 선택하세요.</p>
|
| 2283 |
-
</div>
|
| 2284 |
""")
|
| 2285 |
card_model_selector = gr.Dropdown(
|
| 2286 |
choices=initial_df['Model'].tolist(),
|
|
@@ -2322,8 +2331,7 @@ def create_leaderboard_v2_tab():
|
|
| 2322 |
""")
|
| 2323 |
|
| 2324 |
gr.HTML("""
|
| 2325 |
-
<
|
| 2326 |
-
<p style="color: white; text-align: center; margin: 0 0 20px 0; font-size: 1rem;">레벨과 모델(최대 5개)을 선택하여 상세 SR(성공률) 기반 지표를 탐색하세요.</p>
|
| 2327 |
""")
|
| 2328 |
|
| 2329 |
with gr.Column(elem_classes=["domain-selector-container", "level-selector-container"], elem_id="level-selector-box"):
|
|
@@ -2986,6 +2994,60 @@ def create_leaderboard_v2_tab():
|
|
| 2986 |
}
|
| 2987 |
}
|
| 2988 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2989 |
</style>
|
| 2990 |
|
| 2991 |
""")
|
|
@@ -3581,7 +3643,7 @@ def create_level_metric_chart(df, level, selected_models=None, max_models=5):
|
|
| 3581 |
paper_bgcolor="#01091A",
|
| 3582 |
plot_bgcolor="rgba(245, 246, 247, 0.02)",
|
| 3583 |
height=plot_height,
|
| 3584 |
-
|
| 3585 |
margin=dict(t=90, b=80, l=220, r=160),
|
| 3586 |
legend=dict(
|
| 3587 |
orientation="h",
|
|
@@ -3633,7 +3695,7 @@ def create_empty_level_metric_chart(message):
|
|
| 3633 |
paper_bgcolor="#01091A",
|
| 3634 |
plot_bgcolor="rgba(245, 246, 247, 0.02)",
|
| 3635 |
height=420,
|
| 3636 |
-
|
| 3637 |
margin=dict(t=80, b=60, l=80, r=120),
|
| 3638 |
title=dict(
|
| 3639 |
text="<b>Level Metric Breakdown</b>",
|
|
|
|
| 819 |
-webkit-background-clip: text;
|
| 820 |
-webkit-text-fill-color: transparent;
|
| 821 |
margin-bottom: 1rem;
|
| 822 |
+
font-family: 'Do Hyeon', sans-serif !important;
|
| 823 |
}
|
| 824 |
|
| 825 |
.hero-subtitle {
|
| 826 |
color: var(--text-secondary);
|
| 827 |
font-size: 1.25rem;
|
| 828 |
+
font-family: 'Do Hyeon', sans-serif !important;
|
| 829 |
margin-top: 0;
|
| 830 |
}
|
| 831 |
|
|
|
|
| 884 |
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
|
| 885 |
backdrop-filter: blur(12px);
|
| 886 |
-webkit-backdrop-filter: blur(12px);
|
| 887 |
+
font-family: 'Nanum Gothic', sans-serif !important;
|
| 888 |
}
|
| 889 |
|
| 890 |
.dashboard-section.emphasized {
|
|
|
|
| 909 |
color: var(--text-primary);
|
| 910 |
margin-bottom: 12px;
|
| 911 |
text-align: center !important;
|
| 912 |
+
font-family: 'Nanum Gothic', sans-serif !important;
|
| 913 |
}
|
| 914 |
|
| 915 |
.section-lead, .section-subtitle {
|
| 916 |
+
font-size: 1.32rem !important;
|
| 917 |
color: var(--text-secondary);
|
| 918 |
max-width: 720px;
|
| 919 |
margin: 0 auto 24px auto;
|
|
|
|
| 922 |
word-break: keep-all;
|
| 923 |
white-space: normal;
|
| 924 |
display: block;
|
| 925 |
+
font-family: 'Nanum Gothic', sans-serif !important;
|
| 926 |
}
|
| 927 |
|
| 928 |
.phase-grid {
|
|
|
|
| 940 |
}
|
| 941 |
|
| 942 |
.phase-card h3 {
|
| 943 |
+
font-size: 1.44rem !important;
|
| 944 |
color: var(--text-primary);
|
| 945 |
margin-bottom: 20px;
|
| 946 |
font-weight: 700;
|
| 947 |
+
font-family: 'Nanum Gothic', sans-serif !important;
|
| 948 |
}
|
| 949 |
|
| 950 |
.phase-chart {
|
|
|
|
| 972 |
|
| 973 |
.phase-chart span {
|
| 974 |
position: relative;
|
| 975 |
+
font-size: 1.2rem !important;
|
| 976 |
font-weight: 700;
|
| 977 |
color: white !important;
|
| 978 |
+
font-family: 'Nanum Gothic', sans-serif !important;
|
| 979 |
}
|
| 980 |
|
| 981 |
/* 추가적인 구체적 선택자 */
|
| 982 |
.phase-card .phase-chart span {
|
| 983 |
color: #FFFFFF !important;
|
| 984 |
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
|
| 985 |
+
font-family: 'Nanum Gothic', sans-serif !important;
|
| 986 |
}
|
| 987 |
|
| 988 |
.phase-grid .phase-chart span {
|
| 989 |
color: #FFFFFF !important;
|
| 990 |
z-index: 10 !important;
|
| 991 |
+
font-family: 'Nanum Gothic', sans-serif !important;
|
| 992 |
}
|
| 993 |
|
| 994 |
|
|
|
|
| 1006 |
background: rgba(245, 246, 247, 0.05);
|
| 1007 |
border: 1px solid rgba(245, 246, 247, 0.08);
|
| 1008 |
color: var(--text-secondary);
|
| 1009 |
+
font-size: 1.08rem !important;
|
| 1010 |
+
font-family: 'Nanum Gothic', sans-serif !important;
|
| 1011 |
}
|
| 1012 |
|
| 1013 |
.scenario-body {
|
|
|
|
| 1353 |
filter: drop-shadow(0 0 16px rgba(255, 210, 30, 0.35));
|
| 1354 |
letter-spacing: 0.02em;
|
| 1355 |
animation: title-shimmer 5s ease-in-out infinite;
|
| 1356 |
+
font-family: 'Gowun Dodum', sans-serif !important;
|
| 1357 |
}
|
| 1358 |
|
| 1359 |
@keyframes title-shimmer {
|
|
|
|
| 2054 |
leaderboard_title = gr.HTML(update_leaderboard_title(default_level))
|
| 2055 |
|
| 2056 |
# Integrated controls within leaderboard section - stacked vertically
|
| 2057 |
+
gr.HTML("<p style='color: white; margin: 5px 0 5px 0; font-size: 1.5rem; font-family: 'Nanum Gothic';'>태스크 레벨 선택</p>")
|
| 2058 |
domain_filter = gr.Radio(
|
| 2059 |
choices=level_options,
|
| 2060 |
value=default_level,
|
|
|
|
| 2063 |
container=False,
|
| 2064 |
elem_classes=["domain-radio", "inline-radio"]
|
| 2065 |
)
|
| 2066 |
+
|
| 2067 |
+
gr.HTML("<p style='color: white; margin: 5px 0 0px 0; font-size: 1.5rem;'>🔍 필터 및 정렬</p>")
|
| 2068 |
with gr.Row():
|
| 2069 |
with gr.Column(scale=1):
|
| 2070 |
+
gr.HTML("<span style='color: white; font-size: 1.2rem; margin-bottom: 5px; display: block;'>모델 접근</span>")
|
| 2071 |
model_type_filter = gr.Radio(
|
| 2072 |
choices=["All", "OSS", "API"],
|
| 2073 |
value="All",
|
|
|
|
| 2076 |
container=False
|
| 2077 |
)
|
| 2078 |
with gr.Column(scale=1):
|
| 2079 |
+
gr.HTML("<span style='color: white; font-size: 1.2rem; margin-bottom: 5px; display: block;'>정렬 순서</span>")
|
| 2080 |
sort_order = gr.Radio(
|
| 2081 |
choices=["Descending", "Ascending"],
|
| 2082 |
value="Descending",
|
|
|
|
| 2095 |
<p class="domain-subtitle" style="color: white;">6가지 필수 핵심 요소(성공, 실행, 추론, 강건성, 효율성, 호출 유효성)를 추적합니다.</p>
|
| 2096 |
</div>
|
| 2097 |
""")
|
| 2098 |
+
|
| 2099 |
+
gr.HTML("<p style='color: white; margin: 10px 0 0 0; font-size: 1.2rem; font-family: 'Nanum Gothic';>비교할 모델을 선택하세요. 최대 5개까지 가능합니다.</p>")
|
| 2100 |
+
# gr.HTML("<p style='color: #b0b0b0; margin: 0 0 10px 0; font-size: 0.9rem;'>모델은 최대 5개까지 선택 가능 합니다.</p>")
|
| 2101 |
model_selector = gr.Dropdown(
|
| 2102 |
choices=initial_df['Model'].tolist()[:10],
|
| 2103 |
value=initial_df['Model'].tolist()[:5],
|
|
|
|
| 2282 |
※ Rank는 L1~L7 단계별 SR의 평균값을 기준으로 선정되었습니다.
|
| 2283 |
</p>
|
| 2284 |
</div>
|
| 2285 |
+
|
| 2286 |
<div class="performance-card-content">
|
| 2287 |
""")
|
| 2288 |
+
|
| 2289 |
with gr.Column(elem_classes=["domain-selector-container", "model-selector-container"], elem_id="model-selector-box"):
|
| 2290 |
gr.HTML("""
|
| 2291 |
+
<p class="domain-subtitle" style="color: white;">분석 카드를 생성할 모델을 선택하세요.</p>
|
| 2292 |
+
|
|
|
|
|
|
|
| 2293 |
""")
|
| 2294 |
card_model_selector = gr.Dropdown(
|
| 2295 |
choices=initial_df['Model'].tolist(),
|
|
|
|
| 2331 |
""")
|
| 2332 |
|
| 2333 |
gr.HTML("""
|
| 2334 |
+
<p style="color: white; text-align: center; margin: 0 0 20px 0; font-size: 1.5rem;">태스크 레벨과 모델(최대 5개)을 선택하여 상세 지표를 탐색하세요.</p>
|
|
|
|
| 2335 |
""")
|
| 2336 |
|
| 2337 |
with gr.Column(elem_classes=["domain-selector-container", "level-selector-container"], elem_id="level-selector-box"):
|
|
|
|
| 2994 |
}
|
| 2995 |
}
|
| 2996 |
|
| 2997 |
+
/* 폰트 강제 적용 - 최종 우선순위 */
|
| 2998 |
+
.dashboard-section,
|
| 2999 |
+
.dashboard-section *,
|
| 3000 |
+
.dashboard-section h2,
|
| 3001 |
+
.dashboard-section h3,
|
| 3002 |
+
.dashboard-section p,
|
| 3003 |
+
.dashboard-section li,
|
| 3004 |
+
.section-title,
|
| 3005 |
+
.section-lead,
|
| 3006 |
+
.section-subtitle,
|
| 3007 |
+
.phase-card h3,
|
| 3008 |
+
.phase-list li,
|
| 3009 |
+
.scenario-body p,
|
| 3010 |
+
.criteria-card h3,
|
| 3011 |
+
.criteria-card ul,
|
| 3012 |
+
.criteria-card li {
|
| 3013 |
+
font-family: "Nanum Gothic", sans-serif !important;
|
| 3014 |
+
}
|
| 3015 |
+
|
| 3016 |
+
.domain-title,
|
| 3017 |
+
h2.domain-title,
|
| 3018 |
+
.domain-header .domain-title {
|
| 3019 |
+
font-family: "Gowun Dodum", sans-serif !important;
|
| 3020 |
+
}
|
| 3021 |
+
|
| 3022 |
+
.hero-title,
|
| 3023 |
+
.hero-subtitle,
|
| 3024 |
+
h1.hero-title,
|
| 3025 |
+
p.hero-subtitle {
|
| 3026 |
+
font-family: "Do Hyeon", sans-serif !important;
|
| 3027 |
+
}
|
| 3028 |
+
|
| 3029 |
+
.phase-chart span,
|
| 3030 |
+
.phase-card .phase-chart span,
|
| 3031 |
+
.phase-grid .phase-chart span {
|
| 3032 |
+
font-family: "Nanum Gothic", sans-serif !important;
|
| 3033 |
+
font-size: 1.2rem !important;
|
| 3034 |
+
}
|
| 3035 |
+
|
| 3036 |
+
.section-lead, .section-subtitle {
|
| 3037 |
+
font-size: 1.32rem !important;
|
| 3038 |
+
font-family: "Nanum Gothic", sans-serif !important;
|
| 3039 |
+
}
|
| 3040 |
+
|
| 3041 |
+
.phase-card h3 {
|
| 3042 |
+
font-size: 1.44rem !important;
|
| 3043 |
+
font-family: "Nanum Gothic", sans-serif !important;
|
| 3044 |
+
}
|
| 3045 |
+
|
| 3046 |
+
.phase-list li {
|
| 3047 |
+
font-size: 1.08rem !important;
|
| 3048 |
+
font-family: "Nanum Gothic", sans-serif !important;
|
| 3049 |
+
}
|
| 3050 |
+
|
| 3051 |
</style>
|
| 3052 |
|
| 3053 |
""")
|
|
|
|
| 3643 |
paper_bgcolor="#01091A",
|
| 3644 |
plot_bgcolor="rgba(245, 246, 247, 0.02)",
|
| 3645 |
height=plot_height,
|
| 3646 |
+
autosize=True,
|
| 3647 |
margin=dict(t=90, b=80, l=220, r=160),
|
| 3648 |
legend=dict(
|
| 3649 |
orientation="h",
|
|
|
|
| 3695 |
paper_bgcolor="#01091A",
|
| 3696 |
plot_bgcolor="rgba(245, 246, 247, 0.02)",
|
| 3697 |
height=420,
|
| 3698 |
+
autosize=True,
|
| 3699 |
margin=dict(t=80, b=60, l=80, r=120),
|
| 3700 |
title=dict(
|
| 3701 |
text="<b>Level Metric Breakdown</b>",
|