engr-awaisjamal commited on
Commit
d77c1ea
·
verified ·
1 Parent(s): 44b1594

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ from PyPDF2 import PdfReader
8
 
9
  # Helper function to load different file types
10
  def load_file(uploaded_file):
11
- if uploaded_file.name.endswith('.csv'):
12
  return pd.read_csv(uploaded_file)
13
  elif uploaded_file.name.endswith('.xlsx'):
14
  return pd.read_excel(uploaded_file)
 
8
 
9
  # Helper function to load different file types
10
  def load_file(uploaded_file):
11
+ if #uploaded_file.name.endswith('.csv'):
12
  return pd.read_csv(uploaded_file)
13
  elif uploaded_file.name.endswith('.xlsx'):
14
  return pd.read_excel(uploaded_file)