Spaces:
Sleeping
Sleeping
Upload 8_Scenario_Planner.py
Browse files
pages/8_Scenario_Planner.py
CHANGED
@@ -55,13 +55,13 @@ def optimize(key):
|
|
55 |
scenario = st.session_state["scenario"]
|
56 |
if key.lower() == "spends":
|
57 |
with status_placeholder:
|
58 |
-
with st.spinner("Optimizing
|
59 |
result = st.session_state["scenario"].optimize(
|
60 |
st.session_state["total_spends_change"], channel_list
|
61 |
)
|
62 |
elif key.lower() == "sales":
|
63 |
with status_placeholder:
|
64 |
-
with st.spinner("Optimizing
|
65 |
|
66 |
result = st.session_state["scenario"].optimize_spends(
|
67 |
st.session_state["total_sales_change"], channel_list
|
|
|
55 |
scenario = st.session_state["scenario"]
|
56 |
if key.lower() == "spends":
|
57 |
with status_placeholder:
|
58 |
+
with st.spinner("Optimizing"):
|
59 |
result = st.session_state["scenario"].optimize(
|
60 |
st.session_state["total_spends_change"], channel_list
|
61 |
)
|
62 |
elif key.lower() == "sales":
|
63 |
with status_placeholder:
|
64 |
+
with st.spinner("Optimizing"):
|
65 |
|
66 |
result = st.session_state["scenario"].optimize_spends(
|
67 |
st.session_state["total_sales_change"], channel_list
|