Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -92,7 +92,7 @@ def Load_ml_items(relative_path):
|
|
| 92 |
return loaded_object
|
| 93 |
|
| 94 |
|
| 95 |
-
loaded_object = Load_ml_items(r'
|
| 96 |
|
| 97 |
|
| 98 |
|
|
@@ -117,9 +117,9 @@ def setup(tmp_df_file):
|
|
| 117 |
DATA_VOLUME=[],
|
| 118 |
ON_NET=[],
|
| 119 |
ORANGE=[],
|
| 120 |
-
TIGO=[],
|
| 121 |
-
ZONE1=[],
|
| 122 |
-
ZONE2=[],
|
| 123 |
REGULARITY=[],
|
| 124 |
FREQ_TOP_PACK=[]
|
| 125 |
|
|
@@ -147,8 +147,8 @@ with st.form(key="information", clear_on_submit=True):
|
|
| 147 |
FREQUENCE_RECH = left_col.number_input("number of times the customer refilled:", min_value=0, max_value=1000)
|
| 148 |
REVENUE = left_col.number_input("monthly income of each client:", min_value=0, max_value=1000000000)
|
| 149 |
ARPU_SEGMENT=left_col.number_input("income over 90 days / 3:",min_value=0, max_value=30000)
|
| 150 |
-
FREQUENCE = left_col.number_input("number of times the client has made an income:", min_value=0, max_value=100)
|
| 151 |
-
DATA_VOLUME = left_col.number_input("number of connections:",min_value=0, max_value=10000)
|
| 152 |
|
| 153 |
|
| 154 |
|
|
@@ -156,9 +156,11 @@ with st.form(key="information", clear_on_submit=True):
|
|
| 156 |
right_col.markdown("**SECOND COLUMN DATA**")
|
| 157 |
ON_NET = right_col.number_input("inter expresso call:", min_value=0, max_value=10000)
|
| 158 |
ORANGE = right_col.number_input("call to orange:", min_value=0, max_value=10000)
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
|
|
|
|
|
|
| 162 |
REGULARITY = right_col.number_input("number of times the client is active for 90 day:", min_value=0, max_value=100)
|
| 163 |
FREQ_TOP_PACK=right_col.number_input("number of times the client has activated the top pack packages:", min_value=0, max_value=100)
|
| 164 |
|
|
@@ -180,9 +182,9 @@ if submitted:
|
|
| 180 |
DATA_VOLUME=DATA_VOLUME,
|
| 181 |
ON_NET=ON_NET,
|
| 182 |
ORANGE=ORANGE,
|
| 183 |
-
TIGO=TIGO,
|
| 184 |
-
ZONE1=ZONE1,
|
| 185 |
-
ZONE2=ZONE2,
|
| 186 |
REGULARITY=REGULARITY,
|
| 187 |
FREQ_TOP_PACK=FREQ_TOP_PACK
|
| 188 |
|
|
|
|
| 92 |
return loaded_object
|
| 93 |
|
| 94 |
|
| 95 |
+
loaded_object = Load_ml_items(r'ml_comps_.pkl')
|
| 96 |
|
| 97 |
|
| 98 |
|
|
|
|
| 117 |
DATA_VOLUME=[],
|
| 118 |
ON_NET=[],
|
| 119 |
ORANGE=[],
|
| 120 |
+
#TIGO=[],
|
| 121 |
+
#ZONE1=[],
|
| 122 |
+
#ZONE2=[],
|
| 123 |
REGULARITY=[],
|
| 124 |
FREQ_TOP_PACK=[]
|
| 125 |
|
|
|
|
| 147 |
FREQUENCE_RECH = left_col.number_input("number of times the customer refilled:", min_value=0, max_value=1000)
|
| 148 |
REVENUE = left_col.number_input("monthly income of each client:", min_value=0, max_value=1000000000)
|
| 149 |
ARPU_SEGMENT=left_col.number_input("income over 90 days / 3:",min_value=0, max_value=30000)
|
| 150 |
+
#FREQUENCE = left_col.number_input("number of times the client has made an income:", min_value=0, max_value=100)
|
| 151 |
+
#DATA_VOLUME = left_col.number_input("number of connections:",min_value=0, max_value=10000)
|
| 152 |
|
| 153 |
|
| 154 |
|
|
|
|
| 156 |
right_col.markdown("**SECOND COLUMN DATA**")
|
| 157 |
ON_NET = right_col.number_input("inter expresso call:", min_value=0, max_value=10000)
|
| 158 |
ORANGE = right_col.number_input("call to orange:", min_value=0, max_value=10000)
|
| 159 |
+
FREQUENCE = left_col.number_input("number of times the client has made an income:", min_value=0, max_value=100)
|
| 160 |
+
DATA_VOLUME = left_col.number_input("number of connections:",min_value=0, max_value=10000)
|
| 161 |
+
#TIGO = right_col.number_input("call to Tigo:", min_value=0, max_value=10000)
|
| 162 |
+
#ZONE1 = right_col.number_input("call to Zones 1:", min_value=0, max_value=10000)
|
| 163 |
+
#ZONE2 = right_col.number_input("call to Zones 2:", min_value=0, max_value=10000)
|
| 164 |
REGULARITY = right_col.number_input("number of times the client is active for 90 day:", min_value=0, max_value=100)
|
| 165 |
FREQ_TOP_PACK=right_col.number_input("number of times the client has activated the top pack packages:", min_value=0, max_value=100)
|
| 166 |
|
|
|
|
| 182 |
DATA_VOLUME=DATA_VOLUME,
|
| 183 |
ON_NET=ON_NET,
|
| 184 |
ORANGE=ORANGE,
|
| 185 |
+
#TIGO=TIGO,
|
| 186 |
+
#ZONE1=ZONE1,
|
| 187 |
+
#ZONE2=ZONE2,
|
| 188 |
REGULARITY=REGULARITY,
|
| 189 |
FREQ_TOP_PACK=FREQ_TOP_PACK
|
| 190 |
|