Dmitry Beresnev
commited on
Commit
Β·
3036bb1
1
Parent(s):
aa8b2b0
fix app
Browse files
app.py
CHANGED
|
@@ -87,7 +87,7 @@ with col1:
|
|
| 87 |
|
| 88 |
# Display uploaded image
|
| 89 |
image = Image.open(uploaded_file)
|
| 90 |
-
st.image(image, caption=f"Screenshot {idx}: {uploaded_file.name}"
|
| 91 |
|
| 92 |
# OCR processing
|
| 93 |
with st.spinner(f"Extracting text from screenshot {idx}..."):
|
|
@@ -232,15 +232,15 @@ if st.session_state.portfolio_validated and st.session_state.portfolio_data:
|
|
| 232 |
|
| 233 |
# Historical Prices
|
| 234 |
st.subheader("π Historical Prices (Last 5 Days)")
|
| 235 |
-
st.dataframe(metrics['prices'].tail()
|
| 236 |
|
| 237 |
# Returns
|
| 238 |
with st.expander("π Daily Log Returns (Last 5 Days)"):
|
| 239 |
-
st.dataframe(metrics['returns'].tail()
|
| 240 |
|
| 241 |
# Covariance Matrix
|
| 242 |
st.subheader("π’ Covariance Matrix (Annualized)")
|
| 243 |
-
st.dataframe(metrics['cov_matrix'] * 252
|
| 244 |
|
| 245 |
st.divider()
|
| 246 |
|
|
|
|
| 87 |
|
| 88 |
# Display uploaded image
|
| 89 |
image = Image.open(uploaded_file)
|
| 90 |
+
st.image(image, caption=f"Screenshot {idx}: {uploaded_file.name}")
|
| 91 |
|
| 92 |
# OCR processing
|
| 93 |
with st.spinner(f"Extracting text from screenshot {idx}..."):
|
|
|
|
| 232 |
|
| 233 |
# Historical Prices
|
| 234 |
st.subheader("π Historical Prices (Last 5 Days)")
|
| 235 |
+
st.dataframe(metrics['prices'].tail())
|
| 236 |
|
| 237 |
# Returns
|
| 238 |
with st.expander("π Daily Log Returns (Last 5 Days)"):
|
| 239 |
+
st.dataframe(metrics['returns'].tail())
|
| 240 |
|
| 241 |
# Covariance Matrix
|
| 242 |
st.subheader("π’ Covariance Matrix (Annualized)")
|
| 243 |
+
st.dataframe(metrics['cov_matrix'] * 252)
|
| 244 |
|
| 245 |
st.divider()
|
| 246 |
|