Spaces:
Sleeping
Sleeping
Update app (1).py
Browse files- app (1).py +2 -2
app (1).py
CHANGED
@@ -30,7 +30,7 @@ def app_design(le):
|
|
30 |
st.subheader("Enter the following values:")
|
31 |
|
32 |
step = st.number_input("Step: represents a unit of time where 1 step equals 1 hour")
|
33 |
-
typeup = st.selectbox('Type of online transaction',('PAYMENT', 'TRANSFER', 'CASH_OUT', 'DEBIT', 'CASH_IN'))
|
34 |
typeup = transform(le, [typeup])
|
35 |
amount = st.number_input("The amount of the transaction")
|
36 |
nameOrig = st.text_input("Transaction ID")
|
@@ -41,7 +41,7 @@ def app_design(le):
|
|
41 |
nameDest = transform(le, [nameDest])
|
42 |
oldbalanceDest = st.number_input("Initial balance of recipient before the transaction")
|
43 |
newbalanceDest = st.number_input("The new balance of recipient after the transaction")
|
44 |
-
isFlaggedFraud = st.selectbox('IsFlaggedFraud',('Yes','No'))
|
45 |
isFlaggedFraud = transform(le, [isFlaggedFraud])
|
46 |
|
47 |
# Create a feature list from the user inputs
|
|
|
30 |
st.subheader("Enter the following values:")
|
31 |
|
32 |
step = st.number_input("Step: represents a unit of time where 1 step equals 1 hour")
|
33 |
+
typeup = st.selectbox('Type of online transaction', ('PAYMENT', 'TRANSFER', 'CASH_OUT', 'DEBIT', 'CASH_IN'))
|
34 |
typeup = transform(le, [typeup])
|
35 |
amount = st.number_input("The amount of the transaction")
|
36 |
nameOrig = st.text_input("Transaction ID")
|
|
|
41 |
nameDest = transform(le, [nameDest])
|
42 |
oldbalanceDest = st.number_input("Initial balance of recipient before the transaction")
|
43 |
newbalanceDest = st.number_input("The new balance of recipient after the transaction")
|
44 |
+
isFlaggedFraud = st.selectbox('IsFlaggedFraud', ('Yes', 'No'))
|
45 |
isFlaggedFraud = transform(le, [isFlaggedFraud])
|
46 |
|
47 |
# Create a feature list from the user inputs
|