Anushree2000 commited on
Commit
3ffeb93
·
verified ·
1 Parent(s): 13c3cb8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -81,9 +81,8 @@ import matplotlib.pyplot as plt
81
  import seaborn as sns
82
 
83
  # Load the dataset
84
- uploaded_file = st.file_uploader("Upload your dataset", type=["csv"])
85
- if uploaded_file is not None:
86
- df = pd.read_csv(uploaded_file) # Load CSV without displaying the filename
87
 
88
 
89
  # Set plot style
@@ -146,9 +145,8 @@ from pgmpy.models import BayesianModel
146
  from pgmpy.estimators import ParameterEstimator
147
 
148
  # Load dataset
149
- uploaded_file = st.file_uploader("Upload your dataset", type=["csv"])
150
- if uploaded_file is not None:
151
- df = pd.read_csv(uploaded_file) # Load CSV without displaying the filename
152
 
153
 
154
  # Sidebar for navigation
 
81
  import seaborn as sns
82
 
83
  # Load the dataset
84
+ dataset_path = "Customer_Behavior_Dataset.csv" # Update the path if needed
85
+ df = pd.read_csv(dataset_path)
 
86
 
87
 
88
  # Set plot style
 
145
  from pgmpy.estimators import ParameterEstimator
146
 
147
  # Load dataset
148
+ dataset_path = "Customer_Behavior_Dataset.csv" # Update the path if needed
149
+ df = pd.read_csv(dataset_path)
 
150
 
151
 
152
  # Sidebar for navigation