Elret commited on
Commit
1140ecf
·
verified ·
1 Parent(s): 0afd41c

Update retriever.py

Browse files
Files changed (1) hide show
  1. retriever.py +4 -4
retriever.py CHANGED
@@ -311,10 +311,10 @@ Do not include explanations, steps, justifications, or additional text.
311
  try:
312
  import pandas as pd
313
  df = pd.read_excel(file_path)
314
- for col in df.columns:
315
- if df[col].dtype == object:
316
- return df[col].dropna().astype(str).tolist()
317
- return []
318
  except Exception as e:
319
  logger.error(f"Error extracting from Excel: {e}")
320
  return []
 
311
  try:
312
  import pandas as pd
313
  df = pd.read_excel(file_path)
314
+ for col in df.columns:
315
+ if df[col].dtype == object:
316
+ return df[col].dropna().astype(str).tolist()
317
+ return []
318
  except Exception as e:
319
  logger.error(f"Error extracting from Excel: {e}")
320
  return []