Spaces:
Running
Running
bug fixes
Browse files
app.py
CHANGED
|
@@ -149,41 +149,7 @@ def create_spend_report_chart(leaderboard_df):
|
|
| 149 |
|
| 150 |
if merged.empty:
|
| 151 |
return None
|
| 152 |
-
|
| 153 |
-
# # Create scatter plot
|
| 154 |
-
# fig = go.Figure()
|
| 155 |
-
# colors = ["#F4DD2C" if x == '-' else "#7DCEF1" for x in merged['Size']]
|
| 156 |
-
|
| 157 |
-
# # Add scatter points with single color
|
| 158 |
-
# fig.add_trace(go.Scatter(
|
| 159 |
-
# x=merged["Total Cost ($)"],
|
| 160 |
-
# y=merged["Average"],
|
| 161 |
-
# mode="markers+text",
|
| 162 |
-
# marker=dict(
|
| 163 |
-
# size=12,
|
| 164 |
-
# color=colors,
|
| 165 |
-
# ),
|
| 166 |
-
# text=[name.split("/")[-1] for name in merged["Model"]],
|
| 167 |
-
# textposition="top right",
|
| 168 |
-
# textfont=dict(size=9, color="white"),
|
| 169 |
-
# hovertemplate="<b>%{text}</b><br>Cost: $%{x:.4f}<br>Avg Score: %{y:.4f}<extra></extra>",
|
| 170 |
-
# ))
|
| 171 |
-
|
| 172 |
-
# fig.update_layout(
|
| 173 |
-
# title="Model Evaluation Cost vs Accuracy",
|
| 174 |
-
# xaxis_title="Total Cost ($)",
|
| 175 |
-
# yaxis_title="Average Score",
|
| 176 |
-
# xaxis = dict(showgrid=False),
|
| 177 |
-
# yaxis = dict(showgrid=False),
|
| 178 |
-
# yaxis_range = [0,1],
|
| 179 |
-
# height=600,
|
| 180 |
-
# width=900,
|
| 181 |
-
# hovermode="closest",
|
| 182 |
-
# template="plotly_white",
|
| 183 |
-
# # showlegend=True,
|
| 184 |
-
# font=dict(size=11),
|
| 185 |
-
# margin=dict(l=80, r=80, t=80, b=80),
|
| 186 |
-
# )
|
| 187 |
merged["Model"] = merged["Model"].str.split("/").str[-1]
|
| 188 |
|
| 189 |
fig = go.Figure()
|
|
@@ -211,6 +177,8 @@ def create_spend_report_chart(leaderboard_df):
|
|
| 211 |
plot_bgcolor="rgba(30,30,30,0.85)",
|
| 212 |
font=dict(color="white"),
|
| 213 |
height=650,
|
|
|
|
|
|
|
| 214 |
xaxis_title="Total Cost ($)",
|
| 215 |
yaxis=dict(range=[0, 1], showgrid=False),
|
| 216 |
# xaxis=dict(showgrid=False, dtick=10, tickprefix="$"),
|
|
|
|
| 149 |
|
| 150 |
if merged.empty:
|
| 151 |
return None
|
| 152 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
merged["Model"] = merged["Model"].str.split("/").str[-1]
|
| 154 |
|
| 155 |
fig = go.Figure()
|
|
|
|
| 177 |
plot_bgcolor="rgba(30,30,30,0.85)",
|
| 178 |
font=dict(color="white"),
|
| 179 |
height=650,
|
| 180 |
+
width=1180,
|
| 181 |
+
autosize=True,
|
| 182 |
xaxis_title="Total Cost ($)",
|
| 183 |
yaxis=dict(range=[0, 1], showgrid=False),
|
| 184 |
# xaxis=dict(showgrid=False, dtick=10, tickprefix="$"),
|