Spaces:
Sleeping
Sleeping
Pragya Jatav commited on
Commit ·
64a563b
1
Parent(s): 3e08d83
version changes
Browse files- pages/2_Scenario_Planner.py +67 -12
- summary_df.pkl +1 -1
pages/2_Scenario_Planner.py
CHANGED
|
@@ -1099,15 +1099,38 @@ if auth_status == True:
|
|
| 1099 |
with _columns[2]:
|
| 1100 |
st.metric(label="", value=header_df["Spends"]["Simulated"])
|
| 1101 |
with _columns[3]:
|
| 1102 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1103 |
with _columns[4]:
|
| 1104 |
-
|
| 1105 |
-
|
| 1106 |
-
|
| 1107 |
-
# value=header_df["Spends"]["Percent Change"], # Format value with thousands separator
|
| 1108 |
-
# delta=header_df["Spends"]["Percent Change"], # Delta with sign
|
| 1109 |
-
# delta_color="normal" # Inverse color for delta
|
| 1110 |
-
# )
|
| 1111 |
|
| 1112 |
|
| 1113 |
st.markdown(
|
|
@@ -1122,14 +1145,46 @@ if auth_status == True:
|
|
| 1122 |
with _columns[2]:
|
| 1123 |
st.metric(label="", value=header_df["Prospects"]["Simulated"])
|
| 1124 |
with _columns[3]:
|
| 1125 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1126 |
with _columns[4]:
|
| 1127 |
-
st.
|
|
|
|
|
|
|
| 1128 |
st.markdown(
|
| 1129 |
"""<hr class="spends-child-seperator">""",
|
| 1130 |
unsafe_allow_html=True,
|
| 1131 |
)
|
| 1132 |
-
st.markdown("""<hr class="spends-heading-seperator">""", unsafe_allow_html=True)
|
| 1133 |
|
| 1134 |
# header_df.reset_index(inplace=True)
|
| 1135 |
# # Function to color the index
|
|
@@ -1648,7 +1703,7 @@ if auth_status == True:
|
|
| 1648 |
|
| 1649 |
with bin_placeholder:
|
| 1650 |
if a> 1:
|
| 1651 |
-
fill_color_box = "#
|
| 1652 |
elif a <1:
|
| 1653 |
fill_color_box = "#ff6868"
|
| 1654 |
else:
|
|
|
|
| 1099 |
with _columns[2]:
|
| 1100 |
st.metric(label="", value=header_df["Spends"]["Simulated"])
|
| 1101 |
with _columns[3]:
|
| 1102 |
+
if _scenario.delta_spends >= 0:
|
| 1103 |
+
st.markdown(
|
| 1104 |
+
"""
|
| 1105 |
+
<style>
|
| 1106 |
+
.custom-text {
|
| 1107 |
+
font-size: 40px; /* Adjust font size */
|
| 1108 |
+
color: #6bbf6b ; /* Adjust text color */
|
| 1109 |
+
}
|
| 1110 |
+
</style>
|
| 1111 |
+
""",
|
| 1112 |
+
unsafe_allow_html=True
|
| 1113 |
+
)
|
| 1114 |
+
else:
|
| 1115 |
+
st.markdown(
|
| 1116 |
+
"""
|
| 1117 |
+
<style>
|
| 1118 |
+
.custom-text {
|
| 1119 |
+
font-size: 40px; /* Adjust font size */
|
| 1120 |
+
color: #ff6868; /* Adjust text color */
|
| 1121 |
+
}
|
| 1122 |
+
</style>
|
| 1123 |
+
""",
|
| 1124 |
+
unsafe_allow_html=True
|
| 1125 |
+
)
|
| 1126 |
+
|
| 1127 |
+
|
| 1128 |
+
# Apply custom styles to text
|
| 1129 |
+
st.markdown(f'<p class="custom-text">{header_df["Spends"]["Change"]}</p>', unsafe_allow_html=True)
|
| 1130 |
with _columns[4]:
|
| 1131 |
+
# Apply custom styles to text
|
| 1132 |
+
st.markdown(f'<p></hr></p>', unsafe_allow_html=True)
|
| 1133 |
+
st.markdown(f'<p class="custom-text">{header_df["Spends"]["Percent Change"]}</p>', unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1134 |
|
| 1135 |
|
| 1136 |
st.markdown(
|
|
|
|
| 1145 |
with _columns[2]:
|
| 1146 |
st.metric(label="", value=header_df["Prospects"]["Simulated"])
|
| 1147 |
with _columns[3]:
|
| 1148 |
+
|
| 1149 |
+
if _scenario.delta_sales >= 0:
|
| 1150 |
+
st.markdown(
|
| 1151 |
+
"""
|
| 1152 |
+
<style>
|
| 1153 |
+
.custom-text {
|
| 1154 |
+
font-size: 40px; /* Adjust font size */
|
| 1155 |
+
color:#6bbf6b ; /* Adjust text color */
|
| 1156 |
+
}
|
| 1157 |
+
</style>
|
| 1158 |
+
""",
|
| 1159 |
+
unsafe_allow_html=True
|
| 1160 |
+
)
|
| 1161 |
+
else:
|
| 1162 |
+
st.markdown(
|
| 1163 |
+
"""
|
| 1164 |
+
<style>
|
| 1165 |
+
.custom-text {
|
| 1166 |
+
font-size: 40px; /* Adjust font size */
|
| 1167 |
+
color: #ff6868; /* Adjust text color */
|
| 1168 |
+
}
|
| 1169 |
+
</style>
|
| 1170 |
+
""",
|
| 1171 |
+
unsafe_allow_html=True
|
| 1172 |
+
)
|
| 1173 |
+
|
| 1174 |
+
# Apply custom styles to text
|
| 1175 |
+
st.markdown(f'<p class="custom-text">{header_df["Prospects"]["Change"]}</p>', unsafe_allow_html=True)
|
| 1176 |
+
# st.markdown(f'<p style="color: red;">{st.metric(label="", value=header_df["Prospects"]["Change"])}</p>', unsafe_allow_html=True)
|
| 1177 |
+
# st.markdown(f'<p style="color: red;">{header_df["Prospects"]["Change"]}</p>', unsafe_allow_html=True)
|
| 1178 |
+
|
| 1179 |
with _columns[4]:
|
| 1180 |
+
st.markdown(f'<p></hr></p>', unsafe_allow_html=True)
|
| 1181 |
+
# Apply custom styles to text
|
| 1182 |
+
st.markdown(f'<p class="custom-text">{header_df["Prospects"]["Percent Change"]}</p>', unsafe_allow_html=True)
|
| 1183 |
st.markdown(
|
| 1184 |
"""<hr class="spends-child-seperator">""",
|
| 1185 |
unsafe_allow_html=True,
|
| 1186 |
)
|
| 1187 |
+
# st.markdown("""<hr class="spends-heading-seperator">""", unsafe_allow_html=True)
|
| 1188 |
|
| 1189 |
# header_df.reset_index(inplace=True)
|
| 1190 |
# # Function to color the index
|
|
|
|
| 1703 |
|
| 1704 |
with bin_placeholder:
|
| 1705 |
if a> 1:
|
| 1706 |
+
fill_color_box = "#6bbf6b"
|
| 1707 |
elif a <1:
|
| 1708 |
fill_color_box = "#ff6868"
|
| 1709 |
else:
|
summary_df.pkl
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1822
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7fa6b972f58bde5f2500a635a7586071e852dabf16c59a24655e5b058232ec01
|
| 3 |
size 1822
|