Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -82,6 +82,14 @@ def main():
|
|
82 |
st.write("Sample Data:")
|
83 |
st.dataframe(sample_data)
|
84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
# Load water quality standards (to be replaced with your data)
|
86 |
standards = {
|
87 |
"Lead": 0.01,
|
|
|
82 |
st.write("Sample Data:")
|
83 |
st.dataframe(sample_data)
|
84 |
|
85 |
+
# Debug: Show column names
|
86 |
+
st.write("Columns in uploaded data:", sample_data.columns)
|
87 |
+
|
88 |
+
# Ensure the column names are correct
|
89 |
+
if 'Parameter' not in sample_data.columns or 'Value' not in sample_data.columns:
|
90 |
+
st.error("The uploaded file must contain 'Parameter' and 'Value' columns.")
|
91 |
+
return
|
92 |
+
|
93 |
# Load water quality standards (to be replaced with your data)
|
94 |
standards = {
|
95 |
"Lead": 0.01,
|