Spaces:
Running
Running
AJAY KASU commited on
Commit ·
c789300
1
Parent(s): 2750cce
Fix: Resolve NameError and restore metric display in Streamlit
Browse files- streamlit_app.py +2 -2
streamlit_app.py
CHANGED
|
@@ -158,8 +158,8 @@ if run_btn and user_input:
|
|
| 158 |
help="How closely the portfolio tracks the S&P 500"
|
| 159 |
)
|
| 160 |
with col3:
|
| 161 |
-
excl_display = ", ".join(excluded_sectors) if excluded_sectors else "None"
|
| 162 |
-
st.metric("🚫 Excluded", excl_display if len(excl_display) <= 30 else f"{len(excluded_sectors)} Sectors")
|
| 163 |
|
| 164 |
st.divider()
|
| 165 |
|
|
|
|
| 158 |
help="How closely the portfolio tracks the S&P 500"
|
| 159 |
)
|
| 160 |
with col3:
|
| 161 |
+
excl_display = ", ".join(request.excluded_sectors) if request.excluded_sectors else "None"
|
| 162 |
+
st.metric("🚫 Excluded", excl_display if len(excl_display) <= 30 else f"{len(request.excluded_sectors)} Sectors")
|
| 163 |
|
| 164 |
st.divider()
|
| 165 |
|