Update retriever.py
Browse files- 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 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 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 []
|