Update src/streamlit_app.py
Browse files- src/streamlit_app.py +8 -8
src/streamlit_app.py
CHANGED
|
@@ -25,6 +25,7 @@ st.markdown("""
|
|
| 25 |
font-weight: 500;
|
| 26 |
margin-top: 1rem;
|
| 27 |
margin-bottom: 2rem;
|
|
|
|
| 28 |
}
|
| 29 |
|
| 30 |
/* Links container */
|
|
@@ -37,13 +38,13 @@ st.markdown("""
|
|
| 37 |
.links-container a {
|
| 38 |
margin: 0 1rem;
|
| 39 |
text-decoration: none;
|
| 40 |
-
color: #
|
| 41 |
font-weight: 600;
|
| 42 |
transition: color 0.3s;
|
| 43 |
}
|
| 44 |
|
| 45 |
.links-container a:hover {
|
| 46 |
-
color: #
|
| 47 |
}
|
| 48 |
|
| 49 |
/* Instructions styling */
|
|
@@ -59,7 +60,7 @@ st.markdown("""
|
|
| 59 |
width: 40px;
|
| 60 |
height: 40px;
|
| 61 |
border-radius: 50%;
|
| 62 |
-
background: linear-gradient(135deg, #
|
| 63 |
color: white;
|
| 64 |
display: flex;
|
| 65 |
align-items: center;
|
|
@@ -72,7 +73,6 @@ st.markdown("""
|
|
| 72 |
flex-grow: 1;
|
| 73 |
padding-top: 0.3rem;
|
| 74 |
}
|
| 75 |
-
|
| 76 |
</style>
|
| 77 |
""", unsafe_allow_html=True)
|
| 78 |
|
|
@@ -146,7 +146,7 @@ def create_bar_chart(df, view_type):
|
|
| 146 |
x=df['Model'],
|
| 147 |
y=df['Total Score'],
|
| 148 |
orientation='v',
|
| 149 |
-
marker_color=px.colors.sequential.
|
| 150 |
text=df['Total Score'].round(1),
|
| 151 |
textposition='outside',
|
| 152 |
)
|
|
@@ -168,6 +168,7 @@ def create_bar_chart(df, view_type):
|
|
| 168 |
x=df['Model'],
|
| 169 |
y=df[col],
|
| 170 |
orientation='v',
|
|
|
|
| 171 |
text=df[col].round(1),
|
| 172 |
textposition='outside',
|
| 173 |
))
|
|
@@ -189,6 +190,7 @@ def create_bar_chart(df, view_type):
|
|
| 189 |
x=df['Model'],
|
| 190 |
y=df[col],
|
| 191 |
orientation='v',
|
|
|
|
| 192 |
text=df[col].round(1),
|
| 193 |
textposition='outside',
|
| 194 |
))
|
|
@@ -251,9 +253,6 @@ st.markdown("""
|
|
| 251 |
<a href="https://huggingface.co/datasets/your-username/navitrace" target="_blank">
|
| 252 |
<i class="fas fa-database"></i> Dataset
|
| 253 |
</a>
|
| 254 |
-
<a href="https://your-demo-link.com" target="_blank">
|
| 255 |
-
<i class="far fa-images"></i> Demo
|
| 256 |
-
</a>
|
| 257 |
</div>
|
| 258 |
""", unsafe_allow_html=True)
|
| 259 |
|
|
@@ -284,6 +283,7 @@ st.plotly_chart(fig, use_container_width=True, config={
|
|
| 284 |
'scale': 2
|
| 285 |
}
|
| 286 |
})
|
|
|
|
| 287 |
|
| 288 |
# Detailed table
|
| 289 |
with st.expander("View Detailed Scores"):
|
|
|
|
| 25 |
font-weight: 500;
|
| 26 |
margin-top: 1rem;
|
| 27 |
margin-bottom: 2rem;
|
| 28 |
+
color: #1e3a8a; /* Deep blue */
|
| 29 |
}
|
| 30 |
|
| 31 |
/* Links container */
|
|
|
|
| 38 |
.links-container a {
|
| 39 |
margin: 0 1rem;
|
| 40 |
text-decoration: none;
|
| 41 |
+
color: #3b82f6; /* Bright blue */
|
| 42 |
font-weight: 600;
|
| 43 |
transition: color 0.3s;
|
| 44 |
}
|
| 45 |
|
| 46 |
.links-container a:hover {
|
| 47 |
+
color: #1e3a8a; /* Darker blue */
|
| 48 |
}
|
| 49 |
|
| 50 |
/* Instructions styling */
|
|
|
|
| 60 |
width: 40px;
|
| 61 |
height: 40px;
|
| 62 |
border-radius: 50%;
|
| 63 |
+
background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
|
| 64 |
color: white;
|
| 65 |
display: flex;
|
| 66 |
align-items: center;
|
|
|
|
| 73 |
flex-grow: 1;
|
| 74 |
padding-top: 0.3rem;
|
| 75 |
}
|
|
|
|
| 76 |
</style>
|
| 77 |
""", unsafe_allow_html=True)
|
| 78 |
|
|
|
|
| 146 |
x=df['Model'],
|
| 147 |
y=df['Total Score'],
|
| 148 |
orientation='v',
|
| 149 |
+
marker_color=px.colors.sequential.Blues_r
|
| 150 |
text=df['Total Score'].round(1),
|
| 151 |
textposition='outside',
|
| 152 |
)
|
|
|
|
| 168 |
x=df['Model'],
|
| 169 |
y=df[col],
|
| 170 |
orientation='v',
|
| 171 |
+
marker_color=px.colors.qualitative.Plotly
|
| 172 |
text=df[col].round(1),
|
| 173 |
textposition='outside',
|
| 174 |
))
|
|
|
|
| 190 |
x=df['Model'],
|
| 191 |
y=df[col],
|
| 192 |
orientation='v',
|
| 193 |
+
marker_color=px.colors.qualitative.Plotly
|
| 194 |
text=df[col].round(1),
|
| 195 |
textposition='outside',
|
| 196 |
))
|
|
|
|
| 253 |
<a href="https://huggingface.co/datasets/your-username/navitrace" target="_blank">
|
| 254 |
<i class="fas fa-database"></i> Dataset
|
| 255 |
</a>
|
|
|
|
|
|
|
|
|
|
| 256 |
</div>
|
| 257 |
""", unsafe_allow_html=True)
|
| 258 |
|
|
|
|
| 283 |
'scale': 2
|
| 284 |
}
|
| 285 |
})
|
| 286 |
+
st.caption("🔹 Note: Lower scores indicate better performance.")
|
| 287 |
|
| 288 |
# Detailed table
|
| 289 |
with st.expander("View Detailed Scores"):
|