amiguel commited on
Commit
5902230
·
verified ·
1 Parent(s): bdbf77c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -85,7 +85,7 @@ def process_file(uploaded_file, _cache_key):
85
 
86
  elif uploaded_file.type in ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "text/csv"]:
87
  df = pd.read_excel(uploaded_file) if uploaded_file.type == "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" else pd.read_csv(uploaded_file)
88
- required_cols = ["Scope", "Functional Location"]
89
  available_cols = [col for col in required_cols if col in df.columns]
90
 
91
  if not available_cols:
 
85
 
86
  elif uploaded_file.type in ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "text/csv"]:
87
  df = pd.read_excel(uploaded_file) if uploaded_file.type == "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" else pd.read_csv(uploaded_file)
88
+ required_cols = ["Scope", "Functional Location", "Unit Name"]
89
  available_cols = [col for col in required_cols if col in df.columns]
90
 
91
  if not available_cols: