Spaces:
Runtime error
Runtime error
bug fixing for df_recom_extra
Browse files
app.py
CHANGED
|
@@ -662,8 +662,10 @@ def get_predictions(selected_variable, selected_industry, selected_campaign,
|
|
| 662 |
|
| 663 |
print(f"\nTo get a higher {selected_variable}, the model recommends the following options: ")
|
| 664 |
if len(df_recom_opt_rank_out) < 2:
|
|
|
|
| 665 |
# print("You've already achieved the highest", selected_variable,
|
| 666 |
# "with the current Call-To-Action Colors!")
|
|
|
|
| 667 |
increment = output_rate + (0.02*3)
|
| 668 |
for _, row in df_recom_extra.iterrows():
|
| 669 |
target_rate = random.uniform(increment - 0.02, increment)
|
|
|
|
| 662 |
|
| 663 |
print(f"\nTo get a higher {selected_variable}, the model recommends the following options: ")
|
| 664 |
if len(df_recom_opt_rank_out) < 2:
|
| 665 |
+
st.markdown('##### Youve already achieved the highest {} with the current Call-To-Action Colors!'.format(selected_variable), unsafe_allow_html=True)
|
| 666 |
# print("You've already achieved the highest", selected_variable,
|
| 667 |
# "with the current Call-To-Action Colors!")
|
| 668 |
+
st.markdown('##### df_recom_extra: {}'.format(df_recom_extra), unsafe_allow_html=True)
|
| 669 |
increment = output_rate + (0.02*3)
|
| 670 |
for _, row in df_recom_extra.iterrows():
|
| 671 |
target_rate = random.uniform(increment - 0.02, increment)
|