Skip to content

Commit

Permalink
fix QTD csv loading a raw file
Browse files Browse the repository at this point in the history
  • Loading branch information
dayesouza authored Nov 11, 2024
1 parent 001c183 commit 43858d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions intelligence_toolkit/query_text_data/input_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def convert_file_bytes_to_chunks(

if file_name.endswith(".csv"):
df = pd.read_csv(io.BytesIO(bytes))
text_chunks = convert_df_to_chunks(df, file_name)
text_to_chunks = convert_df_to_chunks(df, file_name)
else:
if file_name.endswith(".pdf"):
page_texts = []
Expand All @@ -89,7 +89,7 @@ def convert_file_bytes_to_chunks(
}
text_chunks[index] = dumps(chunk, indent=2, ensure_ascii=False)

text_to_chunks[file_name] = text_chunks
text_to_chunks[file_name] = text_chunks
return text_to_chunks


Expand Down

0 comments on commit 43858d3

Please sign in to comment.