Spaces:
Runtime error
Runtime error
Commit
Β·
0bc5161
1
Parent(s):
4df8d2a
clean up styling
Browse files
app.py
CHANGED
|
@@ -102,6 +102,7 @@ def build_plot(min_score, max_models_per_month, toggle_annotations, set_selector
|
|
| 102 |
)
|
| 103 |
|
| 104 |
# construct plot
|
|
|
|
| 105 |
fig = px.scatter(
|
| 106 |
filtered_df,
|
| 107 |
x="Release Date",
|
|
@@ -110,10 +111,17 @@ def build_plot(min_score, max_models_per_month, toggle_annotations, set_selector
|
|
| 110 |
hover_name="Model",
|
| 111 |
hover_data=["Organization", "License", "Link"],
|
| 112 |
trendline="ols",
|
| 113 |
-
title=f"Open vs Proprietary LLMs by LMSYS Arena ELO Score
|
| 114 |
labels={"rating": "Arena ELO", "Release Date": "Release Date"},
|
| 115 |
height=800,
|
| 116 |
-
template="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 117 |
)
|
| 118 |
|
| 119 |
fig.update_traces(marker=dict(size=10, opacity=0.6))
|
|
@@ -152,11 +160,12 @@ with gr.Blocks(
|
|
| 152 |
gr.Markdown(
|
| 153 |
"""
|
| 154 |
<div style="text-align: center; max-width: 650px; margin: auto;">
|
| 155 |
-
<h1 style="font-weight: 900; margin-top: 5px;">π¬ Progress Tracker: Open vs. Proprietary LLMs
|
| 156 |
</h1>
|
| 157 |
-
<p style="text-align: left; margin-top:
|
| 158 |
-
This app visualizes the progress of proprietary and open-source LLMs
|
| 159 |
-
The idea is inspired by <a href="https://www.linkedin.com/posts/maxime-labonne_arena-elo-graph-updated-with-new-models-activity-7187062633735368705-u2jB
|
|
|
|
| 160 |
</p>
|
| 161 |
</div>
|
| 162 |
"""
|
|
@@ -222,4 +231,13 @@ with gr.Blocks(
|
|
| 222 |
outputs=plot,
|
| 223 |
)
|
| 224 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 225 |
demo.launch()
|
|
|
|
| 102 |
)
|
| 103 |
|
| 104 |
# construct plot
|
| 105 |
+
custom_colors = {"Open": "#ff7f0e", "Proprietary": "#1f77b4"}
|
| 106 |
fig = px.scatter(
|
| 107 |
filtered_df,
|
| 108 |
x="Release Date",
|
|
|
|
| 111 |
hover_name="Model",
|
| 112 |
hover_data=["Organization", "License", "Link"],
|
| 113 |
trendline="ols",
|
| 114 |
+
title=f"Open vs Proprietary LLMs by LMSYS Arena ELO Score<br>(as of {date_updated})",
|
| 115 |
labels={"rating": "Arena ELO", "Release Date": "Release Date"},
|
| 116 |
height=800,
|
| 117 |
+
template="plotly_dark",
|
| 118 |
+
color_discrete_map=custom_colors,
|
| 119 |
+
)
|
| 120 |
+
|
| 121 |
+
fig.update_layout(
|
| 122 |
+
plot_bgcolor="rgba(0,0,0,0)", # Set background color to transparent
|
| 123 |
+
paper_bgcolor="rgba(0,0,0,0)", # Set paper (plot) background color to transparent
|
| 124 |
+
title={"x": 0.5},
|
| 125 |
)
|
| 126 |
|
| 127 |
fig.update_traces(marker=dict(size=10, opacity=0.6))
|
|
|
|
| 160 |
gr.Markdown(
|
| 161 |
"""
|
| 162 |
<div style="text-align: center; max-width: 650px; margin: auto;">
|
| 163 |
+
<h1 style="font-weight: 900; margin-top: 5px;">π¬ Progress Tracker: Open vs. Proprietary LLMs π¬
|
| 164 |
</h1>
|
| 165 |
+
<p style="text-align: left; margin-top: 5px; margin-bottom: 30px; line-height: 20px;">
|
| 166 |
+
This app visualizes the progress of proprietary and open-source LLMs over time as scored by the <a hfref="https://arena.lmsys.org/">LMSYS Chatbot Arena</a>.
|
| 167 |
+
The idea is inspired by <a href="https://www.linkedin.com/posts/maxime-labonne_arena-elo-graph-updated-with-new-models-activity-7187062633735368705-u2jB">this great work</a>
|
| 168 |
+
from <a href="https://huggingface.co/mlabonne/">Maxime Labonne</a>, and is intended to stay up-to-date as new models are released and evaluated.
|
| 169 |
</p>
|
| 170 |
</div>
|
| 171 |
"""
|
|
|
|
| 231 |
outputs=plot,
|
| 232 |
)
|
| 233 |
|
| 234 |
+
gr.Markdown(
|
| 235 |
+
"""
|
| 236 |
+
<div style="text-align: center; max-width: 650px; margin: auto;">
|
| 237 |
+
<p style="margin-top: 40px;"> If you have any questions, feel free to open an Discussion or <a href="https://twitter.com/andrewrreed">reach out to me on social</a>. </p>
|
| 238 |
+
</p>
|
| 239 |
+
</div>
|
| 240 |
+
"""
|
| 241 |
+
)
|
| 242 |
+
|
| 243 |
demo.launch()
|