Spaces:
Sleeping
Sleeping
Commit
·
3e1a945
1
Parent(s):
c13ab50
Update app.py
Browse files
app.py
CHANGED
@@ -11,9 +11,11 @@ def load_parquet_file(parquet_file_path):
|
|
11 |
model_path = 'models/fraud_detection_model.h5'
|
12 |
fraud_model = load_fraud_detection_model(model_path)
|
13 |
|
|
|
|
|
14 |
# Load data
|
15 |
-
data_path = 'data/dataset.csv'
|
16 |
-
df, X_scaled = preprocess_data_for_streamlit(
|
17 |
|
18 |
# Streamlit App
|
19 |
st.title('Fraud Detection Web App')
|
|
|
11 |
model_path = 'models/fraud_detection_model.h5'
|
12 |
fraud_model = load_fraud_detection_model(model_path)
|
13 |
|
14 |
+
from datasets import load_dataset
|
15 |
+
dataset = load_dataset("iix/Parquet_FIles/")
|
16 |
# Load data
|
17 |
+
#data_path = 'data/dataset.csv'
|
18 |
+
df, X_scaled = preprocess_data_for_streamlit('data/Fraud_detection.parquet')
|
19 |
|
20 |
# Streamlit App
|
21 |
st.title('Fraud Detection Web App')
|