Shafeek Saleem commited on
Commit
8fa1dcd
·
1 Parent(s): 78571a1
Files changed (1) hide show
  1. pages/3_Training the Model.py +11 -11
pages/3_Training the Model.py CHANGED
@@ -140,17 +140,17 @@ def step3_page():
140
  st.subheader("Step 1: Data Collection")
141
  st.write("To initiate the weather forecasting model training process, kindly provide a sufficient and relevant dataset with weather-related attributes in .csv format for uploading. This dataset will be crucial for the model's training and accuracy.")
142
  # Display the image and information in a grid layout
143
- if st.button("Upload"):
144
- col1 = st.columns([1])
145
- with col1[0]:
146
- csv_file = st.file_uploader("Upload CSV", type=['csv'])
147
- if csv_file is not None:
148
- data = process_file(csv_file)
149
- df = pd.DataFrame(data)
150
- st.subheader("Let's display the uploaded dataset!")
151
- st.dataframe(df)
152
- else:
153
- st.error("Please upload a valid .csv file")
154
 
155
  # st.subheader("Step 2: Data Preprocessing and Feature Engineering")
156
  # st.write("Now let's preprocess our dataset to handle missing values, outliers and inconsistencies and then perform feature engineering tasks to extract meaningful features from the raw data. Finally we need to separate training variables (X) and target variable (y).")
 
140
  st.subheader("Step 1: Data Collection")
141
  st.write("To initiate the weather forecasting model training process, kindly provide a sufficient and relevant dataset with weather-related attributes in .csv format for uploading. This dataset will be crucial for the model's training and accuracy.")
142
  # Display the image and information in a grid layout
143
+ # if st.button("Upload"):
144
+ col1 = st.columns([1])
145
+ with col1[0]:
146
+ csv_file = st.file_uploader("Upload CSV", type=['csv'])
147
+ if csv_file is not None:
148
+ data = process_file(csv_file)
149
+ df = pd.DataFrame(data)
150
+ st.subheader("Let's display the uploaded dataset!")
151
+ st.dataframe(df)
152
+ else:
153
+ st.error("Please upload a valid .csv file")
154
 
155
  # st.subheader("Step 2: Data Preprocessing and Feature Engineering")
156
  # st.write("Now let's preprocess our dataset to handle missing values, outliers and inconsistencies and then perform feature engineering tasks to extract meaningful features from the raw data. Finally we need to separate training variables (X) and target variable (y).")