danielperales commited on
Commit
0b2a74d
1 Parent(s): 22a19aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -239,11 +239,10 @@ def main():
239
  if selected_csv != "None" or uploaded_file is not None:
240
  if uploaded_file:
241
  try:
242
- delimiter = ','
243
- insurance_claims = pd.read_csv (uploaded_file, sep=delimiter)
244
  except ValueError:
245
- delimiter = '|'
246
- insurance_claims = pd.read_csv (uploaded_file, sep=delimiter, encoding='latin-1')
247
  else:
248
  insurance_claims = pd.read_csv(selected_csv)
249
 
 
239
  if selected_csv != "None" or uploaded_file is not None:
240
  if uploaded_file:
241
  try:
242
+ insurance_claims = pd.read_csv (uploaded_file, sep=p_delimiter)
 
243
  except ValueError:
244
+ insurance_claims = pd.read_csv (uploaded_file, sep=p_delimiter, encoding='latin-1')
245
+
246
  else:
247
  insurance_claims = pd.read_csv(selected_csv)
248