Update src/streamlit_app.py
Browse files- src/streamlit_app.py +5 -5
src/streamlit_app.py
CHANGED
|
@@ -270,7 +270,7 @@ view_type = st.selectbox(
|
|
| 270 |
|
| 271 |
# Display chart
|
| 272 |
fig = create_bar_chart(df, view_type)
|
| 273 |
-
st.plotly_chart(fig, width=
|
| 274 |
'displayModeBar': True,
|
| 275 |
'displaylogo': False,
|
| 276 |
'toImageButtonOptions': {
|
|
@@ -284,7 +284,7 @@ st.plotly_chart(fig, width=True, config={
|
|
| 284 |
|
| 285 |
# Detailed table
|
| 286 |
with st.expander("View Detailed Scores"):
|
| 287 |
-
st.dataframe(df.style.background_gradient(cmap='Purples', subset=df.columns[1:]), width=
|
| 288 |
|
| 289 |
with st.expander("How to Test Your Model", expanded=True):
|
| 290 |
# Step 1
|
|
@@ -300,7 +300,7 @@ with st.expander("How to Test Your Model", expanded=True):
|
|
| 300 |
</div>
|
| 301 |
""", unsafe_allow_html=True)
|
| 302 |
|
| 303 |
-
st.link_button("📓 Open Evaluation Notebook", "https://colab.research.google.com/your-notebook-link", width=
|
| 304 |
|
| 305 |
# Step 2
|
| 306 |
st.markdown("""
|
|
@@ -331,7 +331,7 @@ with st.expander("How to Test Your Model", expanded=True):
|
|
| 331 |
""", unsafe_allow_html=True)
|
| 332 |
|
| 333 |
if uploaded_file is not None:
|
| 334 |
-
if st.button("🧮 Calculate Score", width=
|
| 335 |
with st.spinner("Validating and calculating scores..."):
|
| 336 |
# Validate format
|
| 337 |
is_valid, result = validate_tsv_format(uploaded_file)
|
|
@@ -367,4 +367,4 @@ with st.expander("How to Test Your Model", expanded=True):
|
|
| 367 |
</div>
|
| 368 |
""", unsafe_allow_html=True)
|
| 369 |
|
| 370 |
-
st.link_button("🗳️ Submit Model", "https://forms.gle/your-google-form-link", width=
|
|
|
|
| 270 |
|
| 271 |
# Display chart
|
| 272 |
fig = create_bar_chart(df, view_type)
|
| 273 |
+
st.plotly_chart(fig, width="stretch", config={
|
| 274 |
'displayModeBar': True,
|
| 275 |
'displaylogo': False,
|
| 276 |
'toImageButtonOptions': {
|
|
|
|
| 284 |
|
| 285 |
# Detailed table
|
| 286 |
with st.expander("View Detailed Scores"):
|
| 287 |
+
st.dataframe(df.style.background_gradient(cmap='Purples', subset=df.columns[1:]), width="stretch")
|
| 288 |
|
| 289 |
with st.expander("How to Test Your Model", expanded=True):
|
| 290 |
# Step 1
|
|
|
|
| 300 |
</div>
|
| 301 |
""", unsafe_allow_html=True)
|
| 302 |
|
| 303 |
+
st.link_button("📓 Open Evaluation Notebook", "https://colab.research.google.com/your-notebook-link", width="stretch")
|
| 304 |
|
| 305 |
# Step 2
|
| 306 |
st.markdown("""
|
|
|
|
| 331 |
""", unsafe_allow_html=True)
|
| 332 |
|
| 333 |
if uploaded_file is not None:
|
| 334 |
+
if st.button("🧮 Calculate Score", width="stretch"):
|
| 335 |
with st.spinner("Validating and calculating scores..."):
|
| 336 |
# Validate format
|
| 337 |
is_valid, result = validate_tsv_format(uploaded_file)
|
|
|
|
| 367 |
</div>
|
| 368 |
""", unsafe_allow_html=True)
|
| 369 |
|
| 370 |
+
st.link_button("🗳️ Submit Model", "https://forms.gle/your-google-form-link", width="stretch")
|