Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -393,7 +393,7 @@ def create_summary_table(df):
|
|
| 393 |
df_summary = df_summary.join(df_category_pivot)
|
| 394 |
|
| 395 |
# Sort by total score
|
| 396 |
-
df_summary = df_summary.sort_values(by="Total Score", ascending=
|
| 397 |
|
| 398 |
# Reset index to make model a column again
|
| 399 |
df_summary = df_summary.reset_index()
|
|
@@ -457,7 +457,7 @@ with st.expander("View Detailed Scores"):
|
|
| 457 |
# Display table
|
| 458 |
st.dataframe(
|
| 459 |
df_summary.style.background_gradient(
|
| 460 |
-
cmap="
|
| 461 |
subset=[col for col in df_summary.columns if col != "model"]
|
| 462 |
).format("{:.2f}", subset=[col for col in df_summary.columns if col != "model"]),
|
| 463 |
use_container_width=True,
|
|
|
|
| 393 |
df_summary = df_summary.join(df_category_pivot)
|
| 394 |
|
| 395 |
# Sort by total score
|
| 396 |
+
df_summary = df_summary.sort_values(by="Total Score", ascending=False)
|
| 397 |
|
| 398 |
# Reset index to make model a column again
|
| 399 |
df_summary = df_summary.reset_index()
|
|
|
|
| 457 |
# Display table
|
| 458 |
st.dataframe(
|
| 459 |
df_summary.style.background_gradient(
|
| 460 |
+
cmap="Blues",
|
| 461 |
subset=[col for col in df_summary.columns if col != "model"]
|
| 462 |
).format("{:.2f}", subset=[col for col in df_summary.columns if col != "model"]),
|
| 463 |
use_container_width=True,
|