Skip to content

Commit

Permalink
fix adding files to zip
Browse files Browse the repository at this point in the history
  • Loading branch information
maxjeblick authored Feb 1, 2024
1 parent 340df38 commit a137398
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion llm_studio/app_utils/sections/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -1683,7 +1683,7 @@ async def experiment_download_model(q: Q):
and file_path not in paths_added
and file_path != zip_path
):
add_file_to_zip(zf=zf, path=file)
add_file_to_zip(zf=zf, path=file_path)
paths_added.append(file_path)
logger.info(
f"Added {file_path} to zip file as it "
Expand Down
2 changes: 1 addition & 1 deletion llm_studio/src/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def add_file_to_zip(zf: zipfile.ZipFile, path: str) -> None:
try:
zf.write(path, os.path.basename(path))
except Exception:
pass
logger.warning(f"File {path} could not be added to zip.")


def save_pickle(path: str, obj: Any, protocol: int = 4) -> None:
Expand Down

0 comments on commit a137398

Please sign in to comment.