Spaces:
Runtime error
Runtime error
Update prediction.py
Browse files- prediction.py +20 -20
prediction.py
CHANGED
@@ -49,26 +49,26 @@ def run():
|
|
49 |
submitted = st.form_submit_button('Predict')
|
50 |
|
51 |
data_inf = {
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
}
|
73 |
|
74 |
data_inf = pd.DataFrame([data_inf])
|
|
|
49 |
submitted = st.form_submit_button('Predict')
|
50 |
|
51 |
data_inf = {
|
52 |
+
'user_id':user_id,
|
53 |
+
'age': age,
|
54 |
+
'gender':gender,
|
55 |
+
'region_category': region_category,
|
56 |
+
'membership_category': membership_category,
|
57 |
+
'joining_date': joining_date,
|
58 |
+
'joined_through_referral':joined_through_referral,
|
59 |
+
'preferred_offer_types': preferred_offer_types,
|
60 |
+
'medium_of_operation': medium_of_operation,
|
61 |
+
'internet_option': internet_option,
|
62 |
+
'days_since_last_login': days_since_last_login,
|
63 |
+
'avg_time_spent': avg_time_spent,
|
64 |
+
'avg_transaction_value': avg_transaction_value,
|
65 |
+
'avg_frequency_login_days': avg_frequency_login_days,
|
66 |
+
'points_in_wallet': points_in_wallet,
|
67 |
+
'used_special_discount': used_special_discount,
|
68 |
+
'offer_application_preference': offer_application_preference,
|
69 |
+
'past_complaint': past_complaint,
|
70 |
+
'complaint_status': complaint_status,
|
71 |
+
'feedback': feedback
|
72 |
}
|
73 |
|
74 |
data_inf = pd.DataFrame([data_inf])
|