Update app.py
Browse files
app.py
CHANGED
|
@@ -59,6 +59,18 @@ st.sidebar.markdown("📊 **Training Dataset Information:**")
|
|
| 59 |
st.sidebar.write("The model is trained on a sepsis dataset. Here's an overview of the dataset:")
|
| 60 |
st.sidebar.write(train_df.head())
|
| 61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
# Load the model and key components
|
| 63 |
with open('model_and_key_components.pkl', 'rb') as file:
|
| 64 |
loaded_components = pickle.load(file)
|
|
|
|
| 59 |
st.sidebar.write("The model is trained on a sepsis dataset. Here's an overview of the dataset:")
|
| 60 |
st.sidebar.write(train_df.head())
|
| 61 |
|
| 62 |
+
# Auto-expand sidebar code
|
| 63 |
+
st.markdown(
|
| 64 |
+
"""
|
| 65 |
+
<style>
|
| 66 |
+
[data-testid="stSidebar"][aria-expanded="false"] > div:first-child {
|
| 67 |
+
width: 100%;
|
| 68 |
+
}
|
| 69 |
+
</style>
|
| 70 |
+
""",
|
| 71 |
+
unsafe_allow_html=True
|
| 72 |
+
)
|
| 73 |
+
|
| 74 |
# Load the model and key components
|
| 75 |
with open('model_and_key_components.pkl', 'rb') as file:
|
| 76 |
loaded_components = pickle.load(file)
|