metric color
Browse files- app.py +8 -6
- src/display/css_html_js.py +7 -0
app.py
CHANGED
@@ -179,17 +179,19 @@ def get_model_info_blocks(chosen_model_name):
|
|
179 |
|
180 |
skills_bar_df = skills_bar_df.sort_values(by=['Scores'], ascending=False).reset_index(drop=True)
|
181 |
|
|
|
|
|
182 |
|
183 |
with gr.Accordion("Model Details"):
|
184 |
|
185 |
with gr.Row():
|
186 |
-
model_name = gr.HTML("
|
187 |
with gr.Row():
|
188 |
-
benchmark_score =
|
189 |
-
rank = gr.HTML("
|
190 |
-
speed =
|
191 |
-
contamination =
|
192 |
-
size = gr.HTML("
|
193 |
|
194 |
with gr.Row():
|
195 |
skills_bar = gr.BarPlot(
|
|
|
179 |
|
180 |
skills_bar_df = skills_bar_df.sort_values(by=['Scores'], ascending=False).reset_index(drop=True)
|
181 |
|
182 |
+
def get_metric_html(metric_title):
|
183 |
+
return f"<div class='deep-dive-metric'><b>{metric_title}</b><span class='ddm-value'>{{}}</div>"
|
184 |
|
185 |
with gr.Accordion("Model Details"):
|
186 |
|
187 |
with gr.Row():
|
188 |
+
model_name = gr.HTML(get_metric_html("Model Name").format(chosen_model_name))
|
189 |
with gr.Row():
|
190 |
+
benchmark_score = gr.HTML(get_metric_html("Benchmark Score").format(filtered_df["Benchmark Score"][0]))
|
191 |
+
rank = gr.HTML(get_metric_html("Benchmark Rank").format(filtered_df["Rank"][0]))
|
192 |
+
speed = gr.HTML(get_metric_html("Speed").format(filtered_df["Speed (words/sec)"][0]))
|
193 |
+
contamination = gr.HTML(get_metric_html("Contamination Score").format(filtered_df["Contamination Score"][0]))
|
194 |
+
size = gr.HTML(get_metric_html("Size Category").format(filtered_df["Category"][0]))
|
195 |
|
196 |
with gr.Row():
|
197 |
skills_bar = gr.BarPlot(
|
src/display/css_html_js.py
CHANGED
@@ -129,6 +129,13 @@ border-radius: 10px;
|
|
129 |
align-items: normal;
|
130 |
max-height: 120px;
|
131 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
.model_responses_container td{
|
133 |
max-width:180px;
|
134 |
}
|
|
|
129 |
align-items: normal;
|
130 |
max-height: 120px;
|
131 |
}
|
132 |
+
|
133 |
+
|
134 |
+
.ddm-value{
|
135 |
+
color:#1000b6;
|
136 |
+
}
|
137 |
+
|
138 |
+
|
139 |
.model_responses_container td{
|
140 |
max-width:180px;
|
141 |
}
|