Skip to content

Commit

Permalink
fix: xls file support
Browse files Browse the repository at this point in the history
  • Loading branch information
milovate committed Dec 27, 2024
1 parent 8be0079 commit 8c5e85c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion daras_ai_v2/vector_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ def pdf_or_tabular_bytes_to_text_pages_or_df(
if "sections" in df.columns or "snippet" in df.columns:
return df
else:
df.columns = [THEAD + col + THEAD for col in df.columns]
df.columns = [THEAD + str(col) + THEAD for col in df.columns]
return pd.DataFrame(["csv=" + df.to_csv(index=False)], columns=["sections"])


Expand Down
25 changes: 25 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ django-csp = "^3.8"
python-pptx = "^1.0.2"
azure-identity = "^1.19.0"
azure-keyvault-secrets = "^4.9.0"
xlrd = "^2.0.1"

[tool.poetry.group.dev.dependencies]
watchdog = "^2.1.9"
Expand Down

0 comments on commit 8c5e85c

Please sign in to comment.