Merge branch 'main' of https://huggingface.co/spaces/rolisz/clv
Browse files
README.md
CHANGED
@@ -8,6 +8,7 @@ sdk_version: 1.17.0
|
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
|
|
11 |
---
|
12 |
|
13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
11 |
+
duplicated_from: deepakkaura26/clv
|
12 |
---
|
13 |
|
14 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
CHANGED
@@ -23,7 +23,6 @@ clv = (user_data.UnitPrice * user_data.Quantity).sum()
|
|
23 |
st.write('Customer lifetime value : ', clv)
|
24 |
|
25 |
|
26 |
-
|
27 |
# Plot the graphs
|
28 |
st.subheader('Purchase Trend')
|
29 |
|
@@ -40,9 +39,8 @@ st.write(fig)
|
|
40 |
|
41 |
|
42 |
|
43 |
-
|
44 |
# Risk of Churn
|
45 |
if clv <= 0:
|
46 |
st.write('Risk of Churn : Yes')
|
47 |
else:
|
48 |
-
st.write('Risk of Churn : No')
|
|
|
23 |
st.write('Customer lifetime value : ', clv)
|
24 |
|
25 |
|
|
|
26 |
# Plot the graphs
|
27 |
st.subheader('Purchase Trend')
|
28 |
|
|
|
39 |
|
40 |
|
41 |
|
|
|
42 |
# Risk of Churn
|
43 |
if clv <= 0:
|
44 |
st.write('Risk of Churn : Yes')
|
45 |
else:
|
46 |
+
st.write('Risk of Churn : No')
|