Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -7
src/streamlit_app.py
CHANGED
|
@@ -130,21 +130,17 @@ with st.form("main_form"):
|
|
| 130 |
st.subheader("Transaction Details")
|
| 131 |
trans_dt = st.text_input("Transaction Date & Time", value="21-06-2020 12:14")
|
| 132 |
amt = st.number_input("Transaction Amount ($)", value=2.86, format="%.2f")
|
| 133 |
-
cc_num = st.text_input("Credit Card Number",
|
| 134 |
merchant = st.text_input("Merchant Name", value="fraud_Kirlin and Sons")
|
| 135 |
category = st.text_input("Category", value="personal_care")
|
| 136 |
|
| 137 |
with c2:
|
| 138 |
-
st.subheader("
|
| 139 |
col_a, col_b = st.columns(2)
|
| 140 |
first_name = col_a.text_input("First Name", value="Jeff")
|
| 141 |
last_name = col_b.text_input("Last Name", value="Elliott")
|
| 142 |
gender = st.selectbox("Gender", ["M", "F"])
|
| 143 |
street = st.text_input("Street Address", value="351 Darlene Green")
|
| 144 |
-
city = st.text_input("City", value="Birmingham")
|
| 145 |
-
state = st.text_input("State", value="AL")
|
| 146 |
-
zip_code = st.text_input("Zip Code", value="35201")
|
| 147 |
-
job = st.text_input("Job Title", value="Software Engineer")
|
| 148 |
|
| 149 |
submit = st.form_submit_button("RUN FRAUD ANALYSIS")
|
| 150 |
|
|
@@ -203,5 +199,4 @@ if submit:
|
|
| 203 |
|
| 204 |
st.sidebar.title("System Info")
|
| 205 |
st.sidebar.info("Model: MoE Neural Network")
|
| 206 |
-
st.sidebar.write(f"Repository: {REPO_ID}")
|
| 207 |
st.sidebar.write("Architecture: 4 Experts (Temporal, Behavioral, Frequency, Spatial)")
|
|
|
|
| 130 |
st.subheader("Transaction Details")
|
| 131 |
trans_dt = st.text_input("Transaction Date & Time", value="21-06-2020 12:14")
|
| 132 |
amt = st.number_input("Transaction Amount ($)", value=2.86, format="%.2f")
|
| 133 |
+
cc_num = st.text_input("Credit Card Number", "2.29116E+15")
|
| 134 |
merchant = st.text_input("Merchant Name", value="fraud_Kirlin and Sons")
|
| 135 |
category = st.text_input("Category", value="personal_care")
|
| 136 |
|
| 137 |
with c2:
|
| 138 |
+
st.subheader("Cardholder Info")
|
| 139 |
col_a, col_b = st.columns(2)
|
| 140 |
first_name = col_a.text_input("First Name", value="Jeff")
|
| 141 |
last_name = col_b.text_input("Last Name", value="Elliott")
|
| 142 |
gender = st.selectbox("Gender", ["M", "F"])
|
| 143 |
street = st.text_input("Street Address", value="351 Darlene Green")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 144 |
|
| 145 |
submit = st.form_submit_button("RUN FRAUD ANALYSIS")
|
| 146 |
|
|
|
|
| 199 |
|
| 200 |
st.sidebar.title("System Info")
|
| 201 |
st.sidebar.info("Model: MoE Neural Network")
|
|
|
|
| 202 |
st.sidebar.write("Architecture: 4 Experts (Temporal, Behavioral, Frequency, Spatial)")
|