Skip to content

Commit

Permalink
fix: apply ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
Um Changyong committed Dec 20, 2024
1 parent 99c9f93 commit b24d95f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions autorag/data/parse/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,12 @@ def run_parser(
module_params,
)
)
_files = {}

_files = {}
for result, filepath in zip(results, filepaths):
_files[filepath].append(result) if filepath in _files.keys() else _files.update({filepath: [result]})
_files[filepath].append(result) if filepath in _files.keys() else _files.update(
{filepath: [result]}
)
# Save files with a specific file type as Parquet files.
for filepath, value in _files.items():
pd.concat(value).to_parquet(filepath, index=False)
Expand Down

0 comments on commit b24d95f

Please sign in to comment.