Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -72,18 +72,20 @@ def predict_fraud(selected_model, selected_interpretability_method, step, transa
|
|
72 |
with gr.Blocks() as app:
|
73 |
gr.Markdown("<h2 style='text-align: center; font-weight: bold;'>FraudSenseXAI - Advanced Fraud Detection</h2>")
|
74 |
gr.Markdown("<p style='text-align: center;'>Predict and analyze fraudulent transactions.</p>", elem_id="description")
|
|
|
|
|
75 |
error_message = gr.Textbox(label="Error Message", visible=False, lines=2, interactive=False)
|
76 |
|
77 |
|
78 |
with gr.Row():
|
79 |
with gr.Column():
|
80 |
-
gr.Markdown("#### INPUT PARAMETERS")
|
81 |
model_selection = gr.Dropdown(choices=['Random Forest', 'Gradient Boost', 'Neural Network'], label="Model Selection")
|
82 |
interpretability_selection = gr.Dropdown(choices=['LIME', 'SHAP'], label="Interpretability Technique")
|
83 |
step = gr.Number(label="Step(Transaction Time)")
|
84 |
transaction_type = gr.Dropdown(choices=['Transfer', 'Payment', 'Cash Out', 'Cash In'], label="Transaction Type")
|
85 |
-
transaction_amount = gr.Number(label="Transaction Amount")
|
86 |
-
old_balance_org = gr.Number(label="Old Balance
|
87 |
submit_btn = gr.Button("Analyze")
|
88 |
|
89 |
# Define outputs
|
|
|
72 |
with gr.Blocks() as app:
|
73 |
gr.Markdown("<h2 style='text-align: center; font-weight: bold;'>FraudSenseXAI - Advanced Fraud Detection</h2>")
|
74 |
gr.Markdown("<p style='text-align: center;'>Predict and analyze fraudulent transactions.</p>", elem_id="description")
|
75 |
+
gr.Markdown("<p style='text-align: center;'>This app utilizes financial synthetic dataset from kaggle, and it is structured to adapt to the nature of the dataset .</p>", elem_id="description")
|
76 |
+
|
77 |
error_message = gr.Textbox(label="Error Message", visible=False, lines=2, interactive=False)
|
78 |
|
79 |
|
80 |
with gr.Row():
|
81 |
with gr.Column():
|
82 |
+
gr.Markdown("#### INPUT PARAMETERS: All fields are required")
|
83 |
model_selection = gr.Dropdown(choices=['Random Forest', 'Gradient Boost', 'Neural Network'], label="Model Selection")
|
84 |
interpretability_selection = gr.Dropdown(choices=['LIME', 'SHAP'], label="Interpretability Technique")
|
85 |
step = gr.Number(label="Step(Transaction Time)")
|
86 |
transaction_type = gr.Dropdown(choices=['Transfer', 'Payment', 'Cash Out', 'Cash In'], label="Transaction Type")
|
87 |
+
transaction_amount = gr.Number(label="Transaction Amount:")
|
88 |
+
old_balance_org = gr.Number(label="Old Balance: total account balance prior to transaction initiation ")
|
89 |
submit_btn = gr.Button("Analyze")
|
90 |
|
91 |
# Define outputs
|